-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
48 lines (43 loc) · 1.46 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
import numpy as np
from Cython.Build import cythonize
from setuptools import setup
from setuptools.extension import Extension
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='clpy',
version='0.1',
description='Low-level Cython bindings to the Clp linear programming solver',
long_description=readme(),
url='https://github.com/gcampanella/clpy',
author='Gianluca Campanella',
author_email='gianluca@campanella.org',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Cython',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Mathematics'
],
packages=['clpy'],
package_data={'clpy': ['*.pxd']},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
ext_modules=cythonize(
Extension('clpy.clp', ['clpy/clp.pyx'], include_dirs=[np.get_include()], libraries=['Clp']),
compiler_directives={
'boundscheck': False,
'wraparound': False,
'initializedcheck': False,
'cdivision': True,
'language_level': 3
}
)
)