Closed gandersen101 closed 5 months ago
expected, and per the 1.7.0 changelog
please close
@dimbleby what reasoning is there for that change specifically for the --sync
behavior? That seems to contradict the config setting of virtualenvs.options.no-setuptools = false
. Subtle, implicit venv state changes seem like a bug to me.
please read both the changelog and the blog post discussing this at the 1.7.0 release
Yeah that doesn't really explain the logic...just says what you all did. I'll close this but this change to --sync
is completely arbitrary and unexpected behavior for Python <3.12 and it is not in the primary poetry documentation.
can you please link to the part of the documentation that says this will happen with Python 3.11 and below?
https://python-poetry.org/docs/configuration/#virtualenvsoptionsno-setuptools
this is what I can find, and it contradicts the behavior I'm seeing on 3.8 and 3.10.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Description
Running
poetry install --sync
will removesetuptools
from project venvs unlesssetuptools
is explicitly required. I understand Python >= 3.12 doesn't includesetuptools
, but prior to 3.12 includingsetuptools
in venvs should be normal behavior (I am seeing this with Python 3.10.13).It does look like poetry originally installs
setuptools
into a new venv, but the--sync
behavior will then remove it.Workarounds
Explicitly requiring
setuptools
in the pyproject.toml.Poetry Installation Method
install.python-poetry.org
Operating System
OSX 14.4.1
Poetry Version
1.8.2
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs