-
Notifications
You must be signed in to change notification settings - Fork 107
/
setup.py
45 lines (37 loc) · 1.31 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",
"chumpy"]
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/hassony2/manopth#installation'.format(
missing_dependencies))
with open("README.md", "r") as fh:
long_description = fh.read()
check_dependencies()
setup(
name="manopth",
version="0.0.1",
author="Yana Hasson",
author_email="[email protected]",
packages=find_packages(exclude=('tests',)),
python_requires=">=3.5.0",
description="PyTorch mano layer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/hassony2/manopth",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU GENERAL PUBLIC LICENSE",
"Operating System :: OS Independent",
],
)