-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
58 lines (54 loc) · 2.17 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
from setuptools import setup, Extension
try:
from Cython.Distutils import build_ext
except ImportError:
use_cython = False
else:
use_cython = True
"""
if use_cython:
ext_modules += [Extension('phasepy.coloc_cy',
['phasepy/src/coloc_cy.pyx']),
Extension('phasepy.actmodels.actmodels_cy',
['phasepy/src/actmodels_cy.pyx']),
Extension('phasepy.sgt.cijmix_cy',
['phasepy/src/cijmix_cy.pyx'])]
cmdclass.update({'build_ext': build_ext})
else:
ext_modules += [Extension('phasepy.coloc_cy', ['phasepy/src/coloc_cy.c']),
Extension('phasepy.actmodels.actmodels_cy',
['phasepy/src/actmodels_cy.c']),
Extension('phasepy.sgt.cijmix_cy',
['phasepy/src/cijmix_cy.c'])]
"""
cmdclass = {}
ext_modules = []
ext_modules += [Extension('phasepy.coloc_cy',
['phasepy/src/coloc_cy.pyx']),
Extension('phasepy.actmodels.actmodels_cy',
['phasepy/src/actmodels_cy.pyx']),
Extension('phasepy.sgt.cijmix_cy',
['phasepy/src/cijmix_cy.pyx'])]
cmdclass.update({'build_ext': build_ext})
setup(
name='phasepy',
license='MIT',
version='0.0.54',
description='Multiphase multicomponent Equilibria',
author='Gustavo Chaparro Maldonado, Andres Mejia Matallana',
author_email='[email protected]',
url='https://github.com/gustavochm/phasepy',
download_url='https://github.com/gustavochm/phasepy.git',
long_description=open('long_description.rst').read(),
packages=['phasepy', 'phasepy.cubic', 'phasepy.equilibrium', 'phasepy.fit',
'phasepy.sgt', 'phasepy.actmodels'],
cmdclass=cmdclass,
ext_modules=ext_modules,
install_requires=['numpy', 'scipy', 'pandas', 'openpyxl'],
platforms=["Windows", "Linux", "Mac OS", "Unix"],
keywords=['Phase Equilibrium', 'Cubic EOS', 'QMR', 'MHV', 'WS', 'NRTL',
'Wilson', 'UNIFAC', 'UNIQUAC', 'Flash', 'VLE', 'LLE', 'VLLE',
'SGT'],
package_data={'phasepy': ['database/*']},
zip_safe=False
)