forked from gustavochm/sgtpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (50 loc) · 1.8 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
from setuptools import setup, Extension
# from Cython.Distutils import build_ext
try:
from Cython.Distutils import build_ext
except ImportError:
use_cython = False
else:
use_cython = True
"""
cmdclass = {}
ext_modules = []
if use_cython:
ext_modules += [Extension('sgtpy.coloc_cy',
['sgtpy/src/coloc_cy.pyx']),
Extension('sgtpy.sgt.cijmix_cy',
['sgtpy/src/cijmix_cy.pyx'])]
cmdclass.update({'build_ext': build_ext})
else:
ext_modules += [Extension('sgtpy.coloc_cy', ['sgtpy/src/coloc_cy.c']),
Extension('sgtpy.sgt.cijmix_cy',
['sgtpy/src/cijmix_cy.c'])]
"""
cmdclass = {}
ext_modules = []
ext_modules += [Extension('sgtpy.coloc_cy',
['sgtpy/src/coloc_cy.pyx']),
Extension('sgtpy.sgt.cijmix_cy',
['sgtpy/src/cijmix_cy.pyx'])]
cmdclass.update({'build_ext': build_ext})
setup(
name='sgtpy',
license='MIT',
version='0.0.17',
description='SAFT-VR-MIE EOS and SGT',
author='Gustavo Chaparro Maldonado, Andres Mejia Matallana, Erich A. Muller',
author_email='g.chaparro-maldonado21@imperial.ac.uk',
url='https://github.com/gustavochm/sgtpy',
download_url='https://github.com/gustavochm/sgtpy.git',
long_description=open('long_description.rst').read(),
packages=['sgtpy', 'sgtpy.vrmie_mixtures', 'sgtpy.vrmie_pure',
'sgtpy.gammamie_mixtures', 'sgtpy.gammamie_pure',
'sgtpy.sgt', 'sgtpy.equilibrium', 'sgtpy.fit'],
cmdclass=cmdclass,
ext_modules=ext_modules,
package_data={'sgtpy': ['database/*']},
install_requires=['numpy', 'scipy', 'cython', 'numba', 'pandas', 'openpyxl'],
platforms=["Windows", "Linux", "Mac OS", "Unix"],
keywords=['SAFT-VR-Mie', 'SGT'],
zip_safe=False
)