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

Poetry commands produce SetuptoolsDeprecationWarning #5210

Closed
2 tasks done
edran opened this issue Feb 17, 2022 · 3 comments
Closed
2 tasks done

Poetry commands produce SetuptoolsDeprecationWarning #5210

edran opened this issue Feb 17, 2022 · 3 comments
Labels
status/duplicate Duplicate issues

Comments

@edran
Copy link

edran commented Feb 17, 2022

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • N/A If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

When running poetry run python (or poetry shell/install/lock ...), I get the following warning:

/Users/nantas/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(

This warning is then present across any invocations of poetry run python. However inside a sourced shell -- i.e. after poetry shell -- running python does not produce the warning (which makes me think it's an issue with the poetry build that is pulled by install-poetry.py).

Interestingly, though, simply running poetry does not produce the warning.


To install poetry I did:

curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.2.0a2 python3 -

with python3 being:

$ which python3                                                                                            
/opt/homebrew/bin/python3

The problem was mentioned in #4085, but this seems different enough to warrant a separate issue for discoverability.

@edran edran added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 17, 2022
@dimbleby
Copy link
Contributor

it is different from #5157?

@finswimmer
Copy link
Member

finswimmer commented Feb 22, 2022

Closing this as a duplicate of #5157

@finswimmer finswimmer added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 22, 2022
Copy link

github-actions bot commented Mar 2, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants