-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
54 lines (46 loc) · 1.37 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from setuptools import find_packages, setup
import warnings
DEPENDENCY_PACKAGE_NAMES = [
"matplotlib",
"torch",
"tqdm",
"numpy",
"cv2",
"scipy",
"chumpy",
"trimesh",
"pyvista"
"deprecation",
"open3d",
]
def check_dependencies():
missing_dependencies = []
for package_name in DEPENDENCY_PACKAGE_NAMES:
try:
__import__(package_name)
except ImportError:
missing_dependencies.append(package_name)
if missing_dependencies:
warnings.warn('Missing dependencies: {}. We recommend you follow '
'the installation instructions at '
'https://github.com/lixiny/manotorch#installation'.format(missing_dependencies))
# with open("README.md", "r") as fh:
# long_description = fh.read()
check_dependencies()
setup(
name="manotorch",
version="0.0.2",
author="Lixin Yang",
author_email="siriusyang@sjtu.edu.cn",
packages=find_packages(exclude=('tests',)),
python_requires=">=3.7.0",
description="MANO pyTORCH",
# long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/lixiny/manotorch",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU GENERAL PUBLIC LICENSE",
"Operating System :: OS Independent",
],
)