Skip to content

Commit

Permalink
Add setuptools installation for Python >= 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
elikoga committed Jun 20, 2024
1 parent b08354a commit ee26e52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/appenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ def ensure_venv(target):
python(target, ["-m", "ensurepip", "--default-pip"])
pip(target, ["install", "--upgrade", "pip"])

# backwards compatibilty: install setuptools if python >= 3.12
if sys.version_info >= (3, 12):
pip(target, ["install", "--upgrade", "setuptools"])


def ensure_minimal_python():
current_python = os.path.realpath(sys.executable)
Expand Down

0 comments on commit ee26e52

Please sign in to comment.