forked from phatli/TransLoc4D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
25 lines (21 loc) · 760 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
import subprocess
from setuptools import setup, find_packages
# Function to install the 'pointops' submodule
def install_pointops():
# Get the directory in which the current script is located
setup_dir = os.path.dirname(os.path.abspath(__file__))
pointops_path = os.path.join(setup_dir, 'pointops')
# Check if the setup.py exists for pointops
if os.path.exists(pointops_path):
subprocess.check_call(['pip', 'install', '-e', pointops_path])
else:
raise FileNotFoundError("Couldn't find pointops setup.py at {}".format(pointops_path))
# Call the function during the setup process
install_pointops()
setup(
name='transloc4d',
version='0.1',
packages=find_packages(),
install_requires=[]
)