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

dependencies: rm virtualenv, already using python3 -m venv #1515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SomberNight
Copy link
Contributor

This PR removes the virtualenv dependency from setup.py, as it looks redundant.

To be fair, I am not fully certain why setup.py was declaring virtualenv as needed, I think it's a historical remnant of python 2 days.

The min required python version is atm 3.6:

REQUIRED_PYTHON = (3, 6)
venv is part of the stdlib since python 3.3, and "is now recommended for creating virtual environments" since 3.5: https://docs.python.org/3/library/venv.html
Note that venv is a subset of virtualenv, but buildozer AFAICT is only using that subset.

Similar change in p4a:
kivy/python-for-android#2152

I've tested building a large android project with only venv available and it worked.

This PR removes the `virtualenv` dependency from `setup.py`, as it looks redundant.

To be fair, I am not fully certain why setup.py was declaring `virtualenv` as needed,
I think it's a historical remnant of python 2 days.

The min required python version is atm 3.6:
https://github.com/kivy/buildozer/blob/9503f5fd153f3f08e9160799fc04b23faf6aabeb/setup.py#L16
`venv` is part of the stdlib since python 3.3, and "is now recommended for creating virtual environments" since 3.5:
https://docs.python.org/3/library/venv.html
Note that `venv` is a subset of `virtualenv`, but buildozer AFAICT is only using that subset.

Similar change in p4a:
kivy/python-for-android#2152
SomberNight added a commit to SomberNight/electrum that referenced this pull request Oct 14, 2022
virtualenv does not seem to be needed given python3-venv

upstream ref: kivy/buildozer#1515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant