At 12:01 PM 10/2/2007 -0400, Alexandre Gauthier wrote:
>Hello there. I'm currently trying to package python bindings for a
>library. The bindings are currently compiled in an obscure way, so I end
>up with the following
>
>libmylib\__init__.py
>libmylib\mylib.pyd
>libmylib\dep.dll
>mylib.py
>
>Where mylib.py is the SWIG interface for mylib.pyd.
>
>Since I cannot have distutils compile the bindings at all, I'd like to
>just install the pyd and dll as "data files" along with the .py in
>"site-packages". That can be accomplished with the following:
>
>for scheme in INSTALL_SCHEMES.values():
> scheme['data'] = scheme['purelib']
Don't do this. If you are using Python 2.4 or above, use this option
in setup():
setup(
package_data = {'mylib': ['mylib.pyd', 'dep.dll']},
...
)
_______________________________________________
Distutils-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig