-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
42 lines (36 loc) · 1.28 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
from setuptools import find_packages, setup
import warnings
DEPENDENCY_PACKAGE_NAMES = ["matplotlib", "torch", "tqdm", "numpy", "cv2", "trimesh"]
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/enriccorona/SMPLicit/'.format(
missing_dependencies))
with open("README.md", "r") as fh:
long_description = fh.read()
check_dependencies()
setup(
name="SMPLicit",
version="0.0.1",
author="Enric Corona",
author_email="enriccorona93@gmail.com",
packages=find_packages(exclude=('tests',)),
python_requires=">=3.5.0",
description="PyTorch SMPLicit layer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/enriccorona/SMPLicit/",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU GENERAL PUBLIC LICENSE",
"Operating System :: OS Independent",
],
)