-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
60 lines (52 loc) · 1.57 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
"""Setup script for drudge."""
import os.path
from setuptools import setup, find_packages, Extension
with open('README.rst', 'r') as readme:
DESCRIPTION = readme.read()
CLASSIFIERS = [
'Development Status :: 1 - Planning',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering :: Mathematics'
]
PROJ_ROOT = os.path.dirname(os.path.abspath(__file__))
INCLUDE_DIRS = [
'/'.join([PROJ_ROOT, i])
for i in ['deps/libcanon/include', 'drudge']
]
COMPILE_FLAGS = ['-std=c++14']
canonpy = Extension(
'drudge.canonpy',
['drudge/canonpy.cpp'],
include_dirs=INCLUDE_DIRS,
extra_compile_args=COMPILE_FLAGS
)
wickcore = Extension(
'drudge.wickcore',
['drudge/wickcore.cpp'],
include_dirs=INCLUDE_DIRS,
extra_compile_args=COMPILE_FLAGS
)
setup(
name='drudge',
version='0.10.0dev0',
description=DESCRIPTION.splitlines()[0],
long_description=DESCRIPTION,
url='https://github.com/tschijnmo/drudge',
author='Jinmo Zhao and Gustavo E Scuseria',
author_email='[email protected]',
license='MIT',
classifiers=CLASSIFIERS,
packages=find_packages(),
ext_modules=[canonpy, wickcore],
package_data={'drudge': ['templates/*']},
install_requires=['sympy', 'ipython', 'Jinja2', 'pyspark'],
entry_points={
'console_scripts': [
'drudge = drudge.drs:main'
]
}
)