-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to install virtuallenv from source on a centos-7 container #1609
Comments
Even easier to test via:
The surprise is bigger as command returns success but fails to install virtualenv, mainly installing UNKNOWN bogus package instead. I do know that this is caused by lack of knowledge about pyproject.toml in older pip/setuptools, but that is why we were supposed to have a setup.py that would work as a fallback. It may worth mentioning that for other projects I use a sligtly more complex setup.py which at least fails in this case complaining about too old setuptools, something less confusing at least. See https://github.com/ansible-community/molecule/blob/master/setup.py#L29 Installation from git clone on very old systems is not really something we really must support, but at least we should avoiding giving a false positive installation experience. |
To summarize there is no documented way to build the virtualenv wheels.
|
We no longer support that old age pip. Upgrade your pip to 19.x something and you should be good, or use the wheel. |
What's the use case here, can't you use the zipapp? |
Adds a packaging environment and documents its use. This should clarify how to build and install and unreleased version. Related: pypa#1609
I do not even remember zipzapp being mentioned in openstack channels, and I am sure it will not be embraced until we will not have any LTS release using on py35+, so years away. I doubt a change to use different installers base on version would gain many adopters. While the newer releases require py36 the CI/CD runs on several releases and needs to keep doing so. As you can imagine tox and virtualenv are key ingredients. So far there is only one agreed way to install python packages is pip. As a funny note, the recent breakages caused by virtualen 20, put more pressure on revising how we install tox (and few other python bases utils) and the idea of starting to use venv and tox-venv gained a little bit more popularity. Still, even if this happens it will take months to materialize as it would require extensive testing and debates. venv comes with its own set of problems, like the fact that some distros are not installing it alongside python, being a separate and optional package. I am not surprised they would fight any change that would introduce more branching. |
It seems that packaging is no longer compatible with older tool chains and even installing virtualenv from source become an interesting challenge.
Ho to reproduce:
Note, pycontribs already has system python+libs installed, so you don't waste time installing rpms.
The text was updated successfully, but these errors were encountered: