forked from Yarroudh/segment-lidar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (36 loc) · 1.35 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from setuptools import setup, find_packages
from setuptools.command.install import install
import subprocess
with open("requirements.txt", "r") as file:
requirements = file.read().splitlines()
class CustomInstallCommand(install):
def run(self):
subprocess.call(['pip', 'install', '-r', 'requirements.txt'])
install.run(self)
try:
import CSF
except ImportError:
subprocess.call(['pip', 'install', 'git+https://github.com/jianboqi/CSF.git'])
from samgeo import SamGeo
from samgeo.text_sam import LangSAM
setup(
name="segment-lidar",
version='0.1.6',
description="A package for segmenting LiDAR data using Segment-Anything Model (SAM) from Meta AI Research.",
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
license='BSD 3-Clause "New" or "Revised" License',
author='Anass Yarroudh',
author_email='[email protected]',
url='https://github.com/Yarroudh/segment-lidar',
packages=find_packages(),
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
cmdclass={
'install': CustomInstallCommand,
}
)