[SciPy-dev] [mailinglist] Re: want to contribute bvp-solver

Uwe Schmitt schmitt at num.uni-sb.de
Wed Jun 28 09:55:11 CDT 2006


|| 
|| >
|| > Hello,
|| >
|| > I wrapped MUSL from www.netlib.org/ode/mus.doc
|| > using f2py. It works fine, but I do not know
|| > how to contribute my code to SciPy.
|| > I read the DEVELOPERS.txt but I still have questions.
|| >
|| > The structure is as follows:
|| >
|| >   - musl.f, musl.pyf generate _musl.pyd
|| >   - mus.py imports _musl.pyd and provides a
|| >     wrapper consisting of a single function.
|| >
|| > How do I have to setup setup.py ?
|| 
|| Read http://scipy.org/NumPyDistutils
|| 
|| I suggest letting musl.pyf to generate musl.pyd (so that the name of 
|| entension module will match the name of signature file) or 
|| rename musl.pyf 
|| to _musl.pyf.
|| 
|| Here follows the content of the corresponding setup.py file 
|| using the 
|| renamed musl.pyf and assuming that all files are under musl/ 
|| directory 
|| (in scipy svn tree it should be under the sandbox/ directory):

I do not find mus.py below:
mus.py now imports _musl.pyd, ( later _musn.pyd ) and provides
functions mus.musl() and mus.musn() as wrappers of _mus?.pyd.

Greetings, Uwe

|| 
|| #!/usr/bin/env python
|| def configuration(parent_package='',top_path=None):
||      from numpy.distutils.misc_util import Configuration
||      config = Configuration('musl',parent_package,top_path)
||      config.add_extension('_musl', sources = ['_musl.pyf', 'musl.f'])
||      return config
|| 
|| if __name__ == "__main__":
||      from numpy.distutils.core import setup
||      setup(configuration=configuration)
|| 
|| HTH,
|| Pearu
|| 
|| _______________________________________________
|| Scipy-dev mailing list
|| Scipy-dev at scipy.net
|| http://www.scipy.net/mailman/listinfo/scipy-dev
|| 




More information about the Scipy-dev mailing list