-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (37 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
40
41
42
43
44
45
from setuptools import find_packages, setup
import warnings
DEPENDENCY_PACKAGE_NAMES = ["matplotlib", "torch", "tqdm", "numpy", "cv2", "scipy",
"chumpy", "trimesh", "pyrender", "lietorch"]
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.1",
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",
],
)