diff --git a/Makefile b/Makefile index ae5cf0a..64100aa 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ clean-DASKR: clean-cython: python setup.py clean $(CLEAN_FLAGS) - rm -f PyDAS/*.so PyDAS/*.pyc + rm -f *.so *.pyc help: @echo "" diff --git a/pydas.pyx b/pydas.pyx index 59eaa78..fe2d9fb 100644 --- a/pydas.pyx +++ b/pydas.pyx @@ -54,7 +54,7 @@ cimport cython ################################################################################ # Expose the (double-precision) DASSL function -cdef extern from "ddassl.h": +cdef extern from "das.h": int ddassl_( void* res, # The residual function that defines the ODE/DAE system int* neq, # The number of equations to be solved diff --git a/setup.py b/setup.py index ace3866..7cb5e46 100644 --- a/setup.py +++ b/setup.py @@ -42,9 +42,9 @@ # The Cython extension modules to compile ext_modules = [ Extension( - 'PyDAS.dassl', - ['PyDAS/dassl.pyx'], - include_dirs=['PyDAS', numpy.get_include()], + 'pydas', + ['pydas.pyx'], + include_dirs=['.', numpy.get_include()], libraries=['gfortran'], extra_objects=['dassl/daux.o','dassl/ddassl.o','dassl/dlinpk.o'], ), @@ -57,7 +57,7 @@ author='Joshua W. Allen', author_email='jwallen@mit.edu', url='http://github.com/jwallen/PyDAS', - packages=['PyDAS'], + py_modules=['pydas'], cmdclass = {'build_ext': build_ext}, ext_modules = ext_modules )