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 install partially broken after introducing --isolated #7182

Closed
moltob opened this issue Dec 12, 2022 · 2 comments
Closed

poetry install partially broken after introducing --isolated #7182

moltob opened this issue Dec 12, 2022 · 2 comments
Labels
status/duplicate Duplicate issues

Comments

@moltob
Copy link

moltob commented Dec 12, 2022

#6531 added the --isolated flag to the pip invocation. This seems to be breaking installation in certain situations.

Our analysis suggests this is the reason:

  • Poetry 1.3 started passing --isolated to pip.
  • The new switch results in ignoring all user configurations, like a PIP_INDEX_URL or a user-local pip.conf file.
  • Since poetry is not passing the configured index to pip (related to Provide index to pip for installation of sdist build dependencies  #3249?), pip is now called without any index configuration.
  • pip wants to build the wheel for the installed package.
  • Packages may have additional setup_requires dependencies needed for building them.
  • pip tries downloading those. Since there is no index config, pip attempts to use the default, PyPI.
  • On machines with without internet access (like enterprise build machines), this fails.

Workaround: Create a non-user configuration, e.g. in /etc/pip.conf.

In a way the new switch stopped shadowing the issue that the index config is not passed to pip, that's why this is surfacing now.

I'd appreciate some feedback how the developer team sees that issue.

@neersighted
Copy link
Member

This is indeed a duplicate of #3249. As you have noted, if you really want to perturb the behavior of pip as used by Poetry, one must alter the system config. This is because many users configure pip in ways incompatible with Poetry, use of --isolated breaks fewer people.

Our long term plan is #6205. Please direct any more discussion to #3249.

Copy link

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 Feb 29, 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

2 participants