forked from zenustech/zeno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (63 loc) · 2.04 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env python3
import os
import sys
import shutil
import setuptools
import subprocess
from glob import glob
os.chdir(os.path.dirname(os.path.abspath(__file__)))
name = 'zensim-zeno'
version = '2021.7.24'
description = 'Open-source node system framework for physics simulation and other CG applications'
packages = ['zenqt']
requirements = ['pybind11', 'numpy', 'PySide2']
def treefiles(dir):
if not os.path.isdir(dir):
yield dir
else:
for name in os.listdir(dir):
path = os.path.join(dir, name)
yield from treefiles(path)
data_files = []
data_files += glob('zenqt/*.so')
data_files += glob('zenqt/*.dylib')
data_files += glob('zenqt/*.pyd')
data_files += treefiles('zenqt/assets')
data_files += treefiles('zenqt/lib')
print('version:', version)
print('packages:', packages)
print('data_files:', data_files)
print('requirements:', requirements)
setuptools.setup(
name=name,
packages=packages,
version=version,
description=description,
author='archibate',
author_email='[email protected]',
url='https://github.com/zensim-dev/zeno',
install_requires=requirements,
data_files=data_files,
include_package_data=True,
keywords=['graphics', 'simulation'],
license='MPL-2.0',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Topic :: Software Development :: Frameworks',
'Topic :: Multimedia :: Graphics',
'Topic :: Games/Entertainment :: Simulation',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: Mozilla Public License 2.0',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
entry_points={
'console_scripts': [
'zeno=zeno.main:main',
'zenqt=zenqt.main:main',
],
},
zip_safe=False,
)