forked from jwallen/PyDAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some changes to the Linux build scripts.
The PyDAS.dassl extension module now links with the DASSL object files rather than the static library. This should help make installation on Windows easier. Fixed the header comment in the setup.py script; it inadvertently referred to RMG instead of PyDAS.
- Loading branch information
Showing
3 changed files
with
45 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
F77=gfortran | ||
|
||
CYTHON_FLAGS=--inplace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
################################################################################ | ||
# | ||
# RMG - Reaction Mechanism Generator | ||
# PyDAS - A Python wrapper to several differential algebraic system solvers | ||
# | ||
# Copyright (c) 2010 by Joshua W. Allen ([email protected]) | ||
# | ||
|
@@ -30,28 +30,34 @@ | |
import numpy | ||
|
||
if __name__ == '__main__': | ||
|
||
from distutils.core import setup | ||
from distutils.extension import Extension | ||
from Cython.Distutils import build_ext | ||
|
||
# Turn on HTML annotation file generation (useful for | ||
import Cython.Compiler.Options | ||
Cython.Compiler.Options.annotate = True | ||
|
||
# The Cython modules to setup | ||
ext_modules = [ | ||
Extension('PyDAS.dassl', ['PyDAS/dassl.pyx'], include_dirs=['PyDAS', numpy.get_include()], library_dirs=['dassl'], libraries=['gfortran', 'ddassl']), | ||
] | ||
|
||
from distutils.core import setup | ||
from distutils.extension import Extension | ||
from Cython.Distutils import build_ext | ||
|
||
# Turn on HTML annotation file generation | ||
import Cython.Compiler.Options | ||
Cython.Compiler.Options.annotate = True | ||
|
||
# The Cython extension modules to compile | ||
ext_modules = [ | ||
Extension( | ||
'PyDAS.dassl', | ||
['PyDAS/dassl.pyx'], | ||
include_dirs=['PyDAS', numpy.get_include()], | ||
libraries=['gfortran'], | ||
extra_objects=['dassl/daux.o','dassl/ddassl.o','dassl/dlinpk.o'], | ||
), | ||
] | ||
|
||
# Run the setup command | ||
setup(name='PyDAS', | ||
version='0.1.0', | ||
description='A Python wrapper to several differential algebraic system solvers', | ||
author='Joshua W. Allen', | ||
author_email='[email protected]', | ||
url='', | ||
packages=['PyDAS'], | ||
cmdclass = {'build_ext': build_ext}, | ||
ext_modules = ext_modules | ||
) | ||
# Run the setup command | ||
setup(name='PyDAS', | ||
version='0.1.0', | ||
description='A Python wrapper to several differential algebraic system solvers', | ||
author='Joshua W. Allen', | ||
author_email='[email protected]', | ||
url='http://github.com/jwallen/PyDAS', | ||
packages=['PyDAS'], | ||
cmdclass = {'build_ext': build_ext}, | ||
ext_modules = ext_modules | ||
) |