At 03:47 PM 7/27/2007 -0400, Stanley A. Klein wrote:
>I'm trying to package an rpm for enthought kiva.  The regular setup.py
>uses the numpy distutils because of some cpp functions that have to be
>compiled and are somehow tied to numpy.
>
>Someone recently did a "build in place" program that uses the existing
>setup.py (that I renamed setup.original.py) and builds the .so files in
>the regular source directory hierarchy.  I did that and then tried to run
>setuptools (python setup.py bdist_rpm) using a straightforward setup.py.
>It included all the python files but missed the *.so files.  I can run
>kiva examples if I manually put the *.so files into the proper place in
>site-packages, so I know they are needed.
>
>I tried including
>
>  packages = find_packages(),
>  package_data = {'': ['*.so']},
>
>in the setup.py, but it still missed the *.so files.
>
>What am I doing wrong?

You don't want package_data.  setup() needs to actually list the 
extensions.  More precisely, the distutils "install_lib" command 
needs to install the extensions when requested to do so by bdist_rpm.

The preceding applies to any distutils setup, not just setuptools.

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to