Skip to content
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

Drop python::virtualenv defined resource #596

Merged
merged 2 commits into from
Dec 23, 2020

Conversation

bastelfreak
Copy link
Member

The whole virtualenv setup is deprecated upstream. pyvenv / the built-in
python module venv should be used. Since we already have a few backwards
incompatible changes on master, it makes sense to drop this now.

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@bastelfreak bastelfreak self-assigned this Dec 15, 2020
@bastelfreak bastelfreak force-pushed the virtualenv2 branch 3 times, most recently from e5780a6 to 68b5175 Compare December 15, 2020 13:30
@treydock
Copy link
Contributor

@bastelfreak My concern with doing this is it makes it impossible on EL7 to install a virtualenv with system Python. If I wanted to use system Python 2.7 on EL7 (or EL8) then must use python::virtualenv as pyvenv is a Python 3 thing.

The whole virtualenv setup is deprecated upstream. pyvenv / the built-in
python module venv should be used. Since we already have a few backwards
incompatible changes on master, it makes sense to drop this now.
debian sometimes takes a bit longer in CI to pass, this fixes it.
@bastelfreak
Copy link
Member Author

@treydock yes, but the tests didn't pass on centos 7 with python2 / we didn't test it since ages.If someone wants to step up and fix it / reimplement it, fine. Otherwise we should drop it (also IMO it's questionable if we should support python 2 because it's really dead).

@treydock
Copy link
Contributor

@bastelfreak I'll just be updating my various modules to force Python 3 on EL7. My main objection is just that RHEL7 and RHEL8 both support Python 2.7 installed from OS repos, so while Python itself might have EOL Python 2.7, RedHat had things downstream of RedHat still support Python 2.7. Since this module can't manage both Python 3 and Python 2 at same time, just likely gonna have to keep Python 2 management in profiles.

@bastelfreak bastelfreak merged commit c0e9c26 into voxpupuli:master Dec 23, 2020
@bastelfreak bastelfreak deleted the virtualenv2 branch April 4, 2022 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants