[BUG] Package data missing with Setuptools 61
See original GitHub issueI’ve been fighting building one of my projects this evening, finding that all of the package data is missing.
$ pip-run -q recapturedocs==5.0.1 -- -c "import recapturedocs, os; assert 'prod.conf' in os.listdir(os.path.dirname(recapturedocs.__file__))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
AssertionError
But if I instead build with setuptools<61
(by changing the pyproject.toml), the content is present.
$ git -C ~/m/recapturedocs diff
diff --git a/pyproject.toml b/pyproject.toml
index 190b355..cfacc1a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
[build-system]
-requires = ["setuptools>=56", "setuptools_scm[toml]>=3.4.1"]
+requires = ["setuptools>=56,<61", "setuptools_scm[toml]>=3.4.1"]
build-backend = "setuptools.build_meta"
[tool.black]
$ pip-run -q ~/m/recapturedocs -- -c "import recapturedocs, os; assert 'prod.conf' in os.listdir(os.path.dirname(recapturedocs.__file__))"
$
I haven’t yet had a chance to investigate why, but I wanted to register this issue.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
1654774 – dbus-python does not provide egg metadata in RPM
The dbus-python package isn't picked up due to missing the egg metadata. How reproducible: 100% Steps to Reproduce: See bug 1654126 Actual results: ......
Read more >How include static files to setuptools - python package
A MANIFEST.in file in the same directory of setup.py that looks like this: ... According to the docs, there are three ways to...
Read more >setuptools 6.1 - PyPI
Easily download, build, install, upgrade, and uninstall Python packages.
Read more >History - setuptools 65.6.3.post20221216 documentation
#3212: Fixed missing dependencies when running setup.py install . ... Setuptools will try to find these values assuming that the package uses either...
Read more >765775 – dev-python/threadpoolctl-2.1.0 ... - Gentoo's Bugzilla
Bug 765775 - dev-python/threadpoolctl-2.1.0 fails with ... File "/usr/lib/python3.8/site-packages/setuptools/command/install.py", line 61, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi Jason, thank you very much for reporting this. I will work on it.
Confirmed the fix works. Thanks for the quick response!