I've got a project that I'm trying to bundle up with py2exe. One sub-
package includes a C extension that compiles into a .pyd file in the
build directory. Unfortunately, py2exe does not see this file and
complains about a missing module!
If, however, I move the .pyd file from the build directory into the
corresponding source directory, py2exe handles it happily. What's
going on here?
Here's my project layout, more or less:
[ contains console scripts for py2exe ]
[ pure python scripts ]
- foo.py, which imports foo_c
[ C-language source files for foo_c ]
the setup.py file looks basically like this:
from distutils.core import setup, Extension
console = ['scripts\\foo.py', 'scripts\\bar.py']
Now, during the build process, the file foo_c.pyd gets properly
created at project\build\lib.whatever\package2\foo_c.pyd. However,
py2exe complains that foo_c is missing!
If I manually copy foo_c.pyd from the build directory to project
\package2\foo_c.pyd, then py2exe works fine.
Am I missing anything obvious in the setup file?
Program in Biomedical Informatics and Department of Biochemistry
Stanford University School of Medicine