Fix installation test for Python 3.12 and Windows · gitpython-developers/GitPython@dba4245 · GitHub
Skip to content

Commit dba4245

Browse files
committed
Fix installation test for Python 3.12 and Windows
Starting in Python 3.12, global and virtual Python environments no longer automatically ship setuptools (per the "ensurepip" item in https://docs.python.org/3.12/whatsnew/3.12.html#removed). Projects that use setuptools as a build backend are still supported, including with setup.py using techniques such as "pip install .". In Windows, the "bin" subdir of a virtual environment dir is called "Scripts" instead. Unlike in a global environment (where no names are universal, and "python3" and "pip3" are more common for the Python 3 commands on some popular Unix-like systems), in a virtual environment the "python" and "pip" commands are always present and "python3" and "pip3" are not guaranteed to be present. This commit changes test_installation accordingly. The CI workflows and documentation still need to be updated.
1 parent c8e303f commit dba4245

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

test/test_installation.py

Lines changed: 6 additions & 4 deletions

0 commit comments

Comments
 (0)