-
Notifications
You must be signed in to change notification settings - Fork 116
/
setup.py
62 lines (59 loc) · 2.23 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
from setuptools import setup, find_packages
import glob
import os
# Find runtime and external library files by obtaining the module path and
# trimming the absolute path of the resulting files.
dace_path = os.path.dirname(os.path.abspath(__file__)) + '/dace/'
diode_path = os.path.dirname(os.path.abspath(__file__)) + '/diode/'
runtime_files = [
f[len(dace_path):]
for f in glob.glob(dace_path + 'runtime/include/**/*', recursive=True)
]
diode_files = [
f[len(diode_path):]
for f in (glob.glob(diode_path + '**/*.js', recursive=True) +
glob.glob(diode_path + '**/*.html', recursive=True))
]
cub_files = [
f[len(dace_path):]
for f in glob.glob(dace_path + 'external/cub/cub/**/*', recursive=True)
] + [dace_path + 'external/cub/LICENSE.TXT']
hlslib_files = [
f[len(dace_path):] for f in glob.glob(
dace_path + 'external/hlslib/cmake/**/*', recursive=True)
] + [
f[len(dace_path):] for f in glob.glob(
dace_path + 'external/hlslib/include/**/*', recursive=True)
] + [dace_path + 'external/hlslib/LICENSE.md']
with open("README.md", "r") as fp:
long_description = fp.read()
setup(
name='dace',
version='0.8.1',
url='https://github.com/spcl/dace',
author='SPCL @ ETH Zurich',
author_email='talbn@inf.ethz.ch',
description='Data-Centric Parallel Programming Framework',
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
packages=find_packages(),
package_data={
'': [
'*.yml', 'codegen/CMakeLists.txt', 'codegen/tools/*.cpp',
'../diode/main.glade', 'external/moodycamel/*.h',
'external/moodycamel/LICENSE.md', 'codegen/Xilinx_HLS.tcl.in'
] + runtime_files + cub_files + diode_files + hlslib_files
},
include_package_data=True,
install_requires=[
'matplotlib', 'numpy', 'networkx >= 2.2', 'astunparse', 'sympy',
'scipy', 'pyyaml', 'cmake', 'absl-py', 'ply', 'websockets', 'graphviz',
'dace-xdot'
],
# install_requires for DIODE: pygobject
scripts=['scripts/diode', 'scripts/dacelab'])