-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
CI Use venv rather than virtualenv #31812
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
CI Use venv rather than virtualenv #31812
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine for me
Though the comparison at the link doesn't make me think venv
is that great? But I guess it was written by the virtualenv
people? Either way, I think we don't care about the features that are missing. Having venv
bundled with Python seems like a good thing and maybe the fact it is part of the stdlib means it will be even more stable?
libatlas3-base libatlas-base-dev python3-venv ccache | ||
|
||
elif [[ "$DISTRIB" == "debian-32" ]]; then | ||
apt-get update | ||
apt-get install -y python3-dev python3-numpy python3-scipy \ | ||
python3-matplotlib libopenblas-dev \ | ||
python3-virtualenv python3-pandas ccache git | ||
python3-venv python3-pandas ccache git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to install a specific package if it's part of the standard lib ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, because Debian packaging decides that venv
is packaged separately in python3-venv
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I guess this was historically used because of Python 2 support (
venv
is Python 3.3+)? A more detailed comparison here.