-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Fix pyvenv on some operating systems #597
base: master
Are you sure you want to change the base?
Conversation
Seems installing |
@treydock thanks for the PR! Are you able to add an acceptance test here as well? |
@bastelfreak Any suggestions on what kind of acceptance tests to add? There are already numerous tests for this defined type that the catalog applies successfully. The only thing I could think to test is that |
if I read this correctly, the code on master fails if you set the python version on debian 10 to 3.7? Is that something that can be validated with a test? |
I am fairly certain for at least Debian 10, which is one of the OSes where I encountered this, the Python 3 version installed is 3.7 so I just do something like this in my module:
That's when I encountered the error for several Debian based operating systems. I was trying to switch my Globus module to Python 3 for all operating systems: treydock/puppet-module-globus#22 That is why I'm not sure why the existing acceptance tests didn't catch this because the code I'm using looks very similar to what's already being done. I think after looking more closely I see why the tests didn't catch this. If I set |
So this PR is not necessary if the |
I wonder if maybe a warning is the appropriate change. If |
Dear @treydock, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Pull Request (PR) description
For Ubuntu 18.04 and Debian 10, ensure distutils is installed.
When testing pyvenv I ran into this problem when using Python 3 and noticed if you install
python3-venv
instead ofpython3.7-venv
it pulls inpython3-distutils
but rather than changing the behavior of how to installpython*-venv
just pulling in the dependency works.Failure with/without system packages
Solution: