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.

[BUG] Package data missing with Setuptools 61

See original GitHub issue

I’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:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
abravalhericommented, Mar 25, 2022

Hi Jason, thank you very much for reporting this. I will work on it.

0reactions
jaracocommented, Mar 26, 2022

Confirmed the fix works. Thanks for the quick response!

Read more comments on GitHub >

github_iconTop 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 >

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