forked from aesara-devs/aesara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·127 lines (112 loc) · 3.33 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#!/usr/bin/env python
import os
from setuptools import find_packages, setup
import versioneer
def read_file(filename):
with open(filename, "rt") as buff:
return buff.read()
NAME = "aesara"
MAINTAINER = "Aesara developers"
MAINTAINER_EMAIL = "[email protected]"
DESCRIPTION = (
"Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs."
)
LONG_DESCRIPTION = read_file("DESCRIPTION.txt")
URL = "https://github.com/aesara-devs/aesara"
LICENSE = "BSD"
AUTHOR = "aesara-devs"
AUTHOR_EMAIL = "[email protected]"
PLATFORMS = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"]
CLASSIFIERS = """\
Development Status :: 6 - Mature
Intended Audience :: Education
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Programming Language :: Python
Topic :: Software Development :: Code Generators
Topic :: Software Development :: Compilers
Topic :: Scientific/Engineering :: Mathematics
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
"""
CLASSIFIERS = [_f for _f in CLASSIFIERS.split("\n") if _f]
install_requires = [
"numpy>=1.17.0",
"scipy>=0.14",
"filelock",
"etuples",
"logical-unification",
"miniKanren",
"cons",
]
# Handle builds of nightly release
if "BUILD_AESARA_NIGHTLY" in os.environ:
nightly = True
NAME += "-nightly"
from versioneer import get_versions as original_get_versions
def get_versions():
from datetime import datetime, timezone
suffix = datetime.now(timezone.utc).strftime(r".dev%Y%m%d")
versions = original_get_versions()
versions["version"] = versions["version"].split("+")[0] + suffix
return versions
versioneer.get_versions = get_versions
if __name__ == "__main__":
setup(
name=NAME,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/x-rst",
classifiers=CLASSIFIERS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
license=LICENSE,
platforms=PLATFORMS,
packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=install_requires,
package_data={
"": [
"*.txt",
"*.rst",
"*.cu",
"*.cuh",
"*.c",
"*.sh",
"*.pkl",
"*.h",
"*.cpp",
"ChangeLog",
"c_code/*",
],
"aesara.misc": ["*.sh"],
"aesara.d3viz": ["html/*", "css/*", "js/*"],
},
entry_points={
"console_scripts": [
"aesara-cache = bin.aesara_cache:main",
]
},
keywords=" ".join(
[
"aesara",
"math",
"numerical",
"symbolic",
"blas",
"numpy",
"gpu",
"autodiff",
"differentiation",
]
),
)