question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression: sdists no longer install package data correctly with 35.0.0

See original GitHub issue

Problem description

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
jaracocommented, 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.

2reactions
jaracocommented, Apr 18, 2017

I can PR that as a starting point.

I went ahead and pulled in the commit. Thanks for putting it together and presenting it in such an accessible way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

data.table package in R 3.5 does not install - Stack Overflow
RTools35.exe IS compatable with R 3.5.0 and will install data.table once it is installed correctly. I'm using the CRAN versions of data.table ...
Read more >
setuptools 3.7.1 - PyPI
Easily download, build, install, upgrade, and uninstall Python packages. ... The sdist command no longer uses the traditional MANIFEST file to create source ......
Read more >
R Installation | Data Science Workshops
Troubleshooting tidyverse installation · Solution: run this command in the console at the command prompt ( > ): · install.packages("dplyr") · If a...
Read more >
olsrr package - RDocumentation
The olsrr package provides following tools for building OLS regression models using R: Comprehensive Regression Output; Variable Selection ...
Read more >
How to Download & Install R Packages - DataCamp
Find an introduction to R packages. Based on the 11 most frequently asked questions about R. See how you can download & install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found