mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-25 05:48:03 -05:00
* autopep8 whitespace only: --select="E101,W1,W2" * revert single file: web2py_online.py Should this be a .py file at all? * revert file Tickets/1443.py because the diff looked strange: maybe there is an encoding problem? * Rename web2py_online.py to web2py_online.rst
26 lines
810 B
Python
26 lines
810 B
Python
|
|
from distutils.core import setup, Extension
|
|
import subprocess,shutil,os,sys
|
|
|
|
sys.argv += ['build_ext','--inplace','--reswig']
|
|
|
|
if '--reswig' in sys.argv:
|
|
import subprocess
|
|
subprocess.check_output(['swig','-python','-outcurrentdir','-c++','-I../../../CoolProp','Helmholtz.i'])
|
|
sys.argv.remove('--reswig')
|
|
|
|
commons = dict()
|
|
|
|
helm_module = Extension('_helmholtz',
|
|
sources=['Helmholtz_wrap.cxx', '../../../CoolProp/Helmholtz.cpp', '../../../CoolProp/CoolPropTools.cpp'],
|
|
**commons
|
|
)
|
|
|
|
setup (name = 'EOSTerms',
|
|
version = '0.0.0',
|
|
author = "Ian Bell",
|
|
author_email = 'ian.h.bell@gmail.com',
|
|
description = """ helmholtz energy terms for EOS fitting """,
|
|
ext_modules = [helm_module],
|
|
)
|