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

package_data does not copy files #2446

Closed
cvanelteren opened this issue Oct 21, 2020 · 2 comments
Closed

package_data does not copy files #2446

cvanelteren opened this issue Oct 21, 2020 · 2 comments

Comments

@cvanelteren
Copy link

cvanelteren commented Oct 21, 2020

I have a simple setup file that compiles cython code. However, I want to package my *.pxd files for other cython packages to use. The package_data option does not copy the pxd files to the installed directory regardless of what options I use.

MANIFEST.in

glob-include *.pxd
global-exclude __pycache__
[...]
setup(
...
package_dir = {"", "plexsim"},
package_data ={"", ["*pxd"]},
include_package_data = True
)

My sources file lists the to be packaged files

[/...egg/SOURCES.TXT]

plexsim/models.cpp
plexsim/models.pxd
plexsim/models.pyx

However the installed directory remains empty

[python3.8/site-packages]

models.cpython-38-x86_64-linux-gnu.so
models.py
__pycache__

The only work-around I have found is to use the data_files option, however this seems a bit odd as even in the docs it's stated as a 'else' option for packing data.

Am I missing something with my setup file? Why is the added option not used?

Setuptools: 50.3.0.post20201006
python: 3.8.6

@abravalheri
Copy link
Contributor

Hi @cvanelteren, have you tried this thing again with version 58.5.3?
Maybe the problem was solved with #2844.

@abravalheri
Copy link
Contributor

For the time being, I will close this issue since I believe it was solved by #2844.
But please feel free to re-open it (by adding a comment with more information regarding a more recent version of setuptools).

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