You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: sdists no longer install package data correctly with 35.0.0 #1016
I have a package that uses setuptools_scm and include_package_data=True to include some Django templates and static files.
With setuptools 34.4.1, installing an sdist will install these package data files without any problems. However, with setuptools 35.0.0, installing the same sdist file will no longer install these package data files.
Note:
Only installing sdists seem to be affected by this problem. In particular:
Generating sdists seems unaffected: both setuptools 34 and 35 generate sdists with the same (correct) distribution content and SOURCES.txt.
Installing sdists previously generated with either setuptools version works correctly with 34.4.1, and fails with 35.0.0.
Wheels seem to be unaffected by this, and build and install fine with both setuptools 34 and 35.
Cause?
As far as I can tell, this regression is due to #436 / #1014, which no longer reads the sdist package's existing manifest. When the manifest gets regenerated (?), the files that were previously included by setuptools_scm while building the sdist are no longer included anymore.
I think that at this point it is better to revert #1014 starting from @pjdelport test case, reopening #436 . Sorry for the regression: when testing #1014 I've completely overlooked the implications beyond sdist creation.
Activity
PiDelport commentedon Apr 18, 2017
Here's a reproducing test script using cartridge-downloads, which uses
setuptools_scmandinclude_package_data=Trueto include some templates:(Note that this uses
pip install --no-binaryto install the sdist rather than the wheel.)Diff output:
As you can see, setuptools 35.0.0 no longer installs the
templatesdirectory as package data.PiDelport commentedon Apr 18, 2017
pyuri is another example of an affected package:
miccoli commentedon Apr 18, 2017
I'm convinced that my PR #1014 is the culprit, see my comments to #436 .
jaraco commentedon Apr 18, 2017
Well, now we know. The quick fix is to revert the change. The better fix would be to also write a test to capture this expectation.
Add an integration test to install pyuri
PiDelport commentedon Apr 18, 2017
Okay, I created an integration test case using
pyurithat seems to reliably test for this:This test case passes on 34, and fails on 35.
If it looks good, I can PR that as a starting point for fixing this issue?
Add an integration test to install pyuri
miccoli commentedon Apr 18, 2017
I think that at this point it is better to revert #1014 starting from @pjdelport test case, reopening #436 . Sorry for the regression: when testing #1014 I've completely overlooked the implications beyond sdist creation.
Merge regression test for #1016.
jaraco commentedon Apr 18, 2017
I went ahead and pulled in the commit. Thanks for putting it together and presenting it in such an accessible way.
Update changelog. Ref #1016.
Revert "List all package data files explicitly"
PiDelport commentedon Apr 19, 2017
Thanks @jaraco!