Skip to content

Conversation

lesteve
Copy link
Member

@lesteve lesteve commented Jul 22, 2025

I guess this was historically used because of Python 2 support (venv is Python 3.3+)? A more detailed comparison here.

Copy link

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: b2550ce. Link to the linter CI: here

Copy link
Member

@betatim betatim left a 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?

Comment on lines +37 to +43
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
Copy link
Member

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 ?

Copy link
Member Author

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 ...

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeremiedbb jeremiedbb merged commit 6058580 into scikit-learn:main Jul 22, 2025
39 checks passed
@lesteve lesteve deleted the venv-instead-of-virtualenv branch July 22, 2025 13:03
lucyleeow pushed a commit to lucyleeow/scikit-learn that referenced this pull request Aug 22, 2025
@jeremiedbb jeremiedbb mentioned this pull request Sep 3, 2025
13 tasks
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