Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distribute pyrobuf_{list,util}.pxd files in sys.path #141

Open
wrobell opened this issue Jul 12, 2019 · 1 comment
Open

distribute pyrobuf_{list,util}.pxd files in sys.path #141

wrobell opened this issue Jul 12, 2019 · 1 comment

Comments

@wrobell
Copy link

wrobell commented Jul 12, 2019

It would be nice if pyrobuf distributed pyrobuf_{list,util}.pxd files in sys.path. This is needed in order to cimport pyrobuf_list.

It seems, as documented in Cython documentation, it can be done with package_data parameter in setup.py file.

As workaround, I have to keep the pxd files within repository of my own projects, which inconvenient to maintain.

@thirtythreeforty
Copy link
Contributor

Possibly this is related to the following snippet from the Cython docs:

Note also that if you use setuptools instead of distutils, the default action when running python setup.py install is to create a zipped egg file which will not work with cimport for pxd files when you try to use them from a dependent package. To prevent this, include zip_safe=False in the arguments to setup().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants