-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
40 lines (32 loc) · 1.44 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
from distutils.core import setup, Extension
import subprocess,shutil,os,sys
# Obtain the numpy include directory. This logic works across numpy versions.
## import numpy
## try:
## numpy_include = numpy.get_include()
## except AttributeError:
## numpy_include = numpy.get_numpy_include()
sys.argv += ['install','--reswig']
if '--reswig' in sys.argv:
import subprocess
subprocess.check_output(['swig','-python','-c++','-I../externals/coolprop','-I../externals/thermalcorr','ACHP.i'],cwd = 'src')
sys.argv.remove('--reswig')
numpy_include=['']
commons = dict(include_dirs = ['externals'],
libraries = ['CoolPropLib_MD','ThermalCorr_MD'],
library_dirs = ['externals/coolprop/wrappers/StaticLibrary/VS2008','externals/thermalcorr/wrappers/StaticLibrary/VS2008'],
)
ACHP_module = Extension('ACHP._ACHP',
sources=['src/ACHP_wrap.cxx', 'src/Compressor.cpp', 'src/BPHE.cpp'],
**commons
)
setup (name = 'ACHP',
version = '0.0.1dev',
package_dir = {'ACHP':'src'},
packages = ['ACHP'],
author = "Ian Bell",
author_email='[email protected]',
url='http://achp.sourceforge.net',
description = """ Steady-state system model using moving boundary models """,
ext_modules = [ACHP_module],
)