Skip to content

Fix for Python 3.12#4

Closed
yselkowitz wants to merge 1 commit intommerickel:masterfrom
yselkowitz:py312
Closed

Fix for Python 3.12#4
yselkowitz wants to merge 1 commit intommerickel:masterfrom
yselkowitz:py312

Conversation

@yselkowitz
Copy link

virtualenv 20.23.0 will no longer install setuptools and wheel by default when run with Python 3.12:

pypa/virtualenv#2558

This causes the pkg_resources call in pytest-venv to fail, as that is installed together with setuptools. Use the virtualenv command line argument to restore the previous behaviour.

The alternative would be to replace the pkg_resources call with a pip API call, as pip is still installed by default with 3.12.

virtualenv 20.23.0 will no longer install setuptools and wheel by
default when run with Python 3.12:

pypa/virtualenv#2558

This causes the pkg_resources call in pytest-venv to fail, as that is
installed together with setuptools.  Use the virtualenv command line
argument to restore the previous behaviour.
@mmerickel
Copy link
Owner

I've replaced this PR with work done in #7 but thank you for the push in the right direction.

@mmerickel mmerickel closed this Nov 23, 2023
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.

2 participants