Description of problem: Can't install local package with pip3 install -e For more information see https://github.com/pypa/setuptools/issues/1694 Version-Release number of selected component (if applicable): setuptools-40.4.3 How reproducible: See https://github.com/pypa/setuptools/issues/1694 Actual results: Obtaining file:///home/vagrant/devel Installing build dependencies ... done Getting requirements to build wheel ... error Complete output from command /home/vagrant/.virtualenvs/anitya/bin/python3 /home/vagrant/.virtualenvs/anitya/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp6db90a_q: Traceback (most recent call last): File "/home/vagrant/.virtualenvs/anitya/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 207, in <module> main() File "/home/vagrant/.virtualenvs/anitya/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 197, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/home/vagrant/.virtualenvs/anitya/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 48, in get_requires_for_build_wheel backend = _build_backend() File "/home/vagrant/.virtualenvs/anitya/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 39, in _build_backend obj = getattr(obj, path_part) AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__' Expected results: The package is installed Additional info: According to the https://github.com/pypa/setuptools/issues/1694 the version 40.8.0 of setuptools should solve this.
Can you workaround this by updating both pip and setuptools in your virtual environment? Anyway, updating to 40.8.0 is technically possible (we have that version in F30), but somebody would need to check if there are no backwards incompatible changes.
Yes, I can workaround this when I don't use --system-site-packages flag when creating virtual environment. But still this is something that could hit plenty of Fedora users.
Can you workaround this by updating both pip and setuptools in your virtual environment even if you use --system-site-packages? (I'm asking because I want to understand this problem better, I'm not trying to talk myself out of fixing it.)
(Reading the upstream issue, I assume the answer is no.) This is the most important issue: https://github.com/pypa/pip/issues/6264 Upstream pip is broken, but Fedora users will get it in venv via explicit update or in virtualenv (fetches newest version by default). We should really update setuptools if it is at least bit possible.
It doesn't work if you have newest version of setuptools in virtual environment and using --system-site-packages. I have setuptools 40.8.0 in virtual environment and still experiencing this issue.
That's what I thought. Thanks for clarifying.
We have 39.2.0 in F29 and F28. I'm reading the changes in https://setuptools.readthedocs.io/en/latest/history.html that happened since. - Drop support for Python 3.3 -> we have 3.3 on F28, but it bundles it's own wheel. ✔️ - Deprecated upload and register commands -> not removed yet. ✔️ - Officially deprecated the requires parameter in setup() -> not removed yet. ✔️ - Resource paths are passed to pkg_resources.resource_string and similar no longer accept paths that traverse parents -> results in DeprecationWarning only. ✔️ I think we are OK. Will prep PRs.
> We have 39.2.0 in F29 and F28. Correction. We have 40.4.3 in F29 and 39.2.0 in F28.
https://src.fedoraproject.org/rpms/python-setuptools/pull-request/17 https://src.fedoraproject.org/rpms/python-setuptools/pull-request/18
python-setuptools-40.8.0-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-0bf6b7eaf9
python-setuptools-40.8.0-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-80802d12fa
python-setuptools-40.8.0-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-80802d12fa
python-setuptools-40.8.0-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-0bf6b7eaf9
Can you please verify the update fixes this problem?
Tested on F29 and it fixed the issue for me.
Tested on F28 and it works for me.
python-setuptools-40.8.0-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.
python-setuptools-40.8.0-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.