At 09:33 AM 12/22/2008 +0000, devel@jonasmelian.com wrote:
When I use the next command in my home system:
$ python setup.py develop
Pyrex compiles the '.pyx' file without any problem. But after of uploading it to Pypi, and when is installed via 'easy_install' it doesn't builds any more. (I had to upload the '.c' file compiled on my system)
You can see here how has been configured: http://www.bitbucket.org/ares/bcryptwrap/src/tip/setup.py
and here where I had to add any files: http://www.bitbucket.org/ares/bcryptwrap/src/tip/MANIFEST.in
Note that in the last verion in Pypi I've only one of the next sentences but I had both ones in anterior revisions.
setup_requires='Pyrex', install_requires='Pyrex',
It download and install Pyrex before of my package, but Pyrex doesn't compile the file.
The setup_requires is the only one required; however, setuptools is checking for Pyrex's presence *before* it's available on sys.path. I don't know of any way to work around this, except to include pre-built .c files in your distribution.