-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
39 lines (36 loc) · 1.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
import numpy
from setuptools import find_packages, setup
from setuptools.extension import Extension
import sys
import versioneer
try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements
from Cython.Build import cythonize
extensions = [
Extension("pauxy.estimators.ueg_kernels",
["pauxy/estimators/ueg_kernels.pyx"],
include_dirs=[numpy.get_include()])
]
def load_requirements(fname):
reqs = parse_requirements(fname, session="test")
try:
return [str(ir.req) for ir in reqs]
except AttributeError:
return [str(ir.requirement) for ir in reqs]
setup(
name='pauxy',
version=versioneer.get_version(),
author='PAUXY developers',
url='http://github.com/fdmalone/pauxy',
packages=find_packages(exclude=['examples', 'docs', 'tests', 'tools', 'setup.py']),
license='Lesser GPL v2.1',
description='Python Implementations of Auxilliary Field QMC algorithms',
python_requires=">=3.6.0",
install_requires=load_requirements("requirements.txt"),
long_description=open('README.rst').read(),
ext_modules = cythonize(extensions, include_path=[numpy.get_include()],
compiler_directives={'language_level':
sys.version_info[0]})
)