[Cython] Cython 0.11 release candidate
Stefan Behnel
stefan_ml at behnel.de
Tue Mar 10 10:23:19 CET 2009
Neal Becker wrote:
> python setup.py install -O1 --skip-build --root
> ~/RPM/BUILDROOT/Cython-0.11-1rc.fc1\
> 0.x86_64/
> Compiling module Cython.Plex.Scanners ...
> Compiling module Cython.Compiler.Scanning ...
> Compiling module Cython.Compiler.Parsing ...
> Compiling module Cython.Compiler.Visitor ...
> Compiling module Cython.Runtime.refpython setup.py build
This looks weird, are you sure you copied this correctly?
> Compiling module Cython.Plex.Scanners ...
> Compiling module Cython.Compiler.Scanning ...
> Compiling module Cython.Compiler.Parsing ...
> Compiling module Cython.Compiler.Visitor ...
> Compiling module Cython.Runtime.refnanny ...
> ERROR: [Errno 2] No such file or directory:
> u'/home/nbecker/RPM/BUILD/Cython-0.11.rc/Cython/Runtime/refnanny.pyx'
> Extension module compilation failed, using plain Python implementation
> running build
> running build_py
> running build_scripts
>
> python setup.py install -O1 --skip-build --root
> ~/RPM/BUILDROOT/Cython-0.11-1rc.fc10.x86_64/
> Compiling module Cython.Plex.Scanners ...
And this seems to be where things continue:
> nanny ...
> ERROR: [Errno 2] No such file or directory:
> u'/home/nbecker/RPM/BUILD/Cython-0.11.rc/Cython/Runtime/refnanny.pyx'
> Extension module compilation failed, using plain Python implementation
> running install
> [...]
I actually think that it's the "install" that hits us here. The
refnanny.pyx isn't copied on installation, as we expect the .so file to be
built already. However, you call "install" with the "--skip-build" option,
which prevents the build of the shared library, thus preventing the
refnanny from being available at all.
We might just declare the refnanny.pyx file as package data, so that it's
copied into the installation. It doesn't hurt to have it lying next to the
refnanny.so file.
Here's another patch. BTW, you can pass the "--no-cython-compile" option to
your "setup.py install" call to keep it from compiling certain source files
multiple times. It's well enough if it does that once on "setup.py build".
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: package_data.patch
Type: text/x-patch
Size: 1479 bytes
Desc: not available
Url : http://codespeak.net/pipermail/cython-dev/attachments/20090310/a338b292/attachment.bin
More information about the Cython-dev
mailing list