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

poc: foreign pip #6458

Closed
wants to merge 1 commit into from
Closed

Conversation

neersighted
Copy link
Member

This is a take on an alternate solution to our current embedded/in-venv pip woes: use a 'foreign' pip installed in Poetry's env to manage files in the project venv.

This works, except for scripts as --target does not install scripts properly, and --prefix cannot be used with the wheel platform overrides. However, if pip grows support for --prefix instead of --target in our use case, this could be a viable transitional approach for 1.2.

Tests are going to be totally busted as I have not upgraded any of them for the new code yet.

@neersighted
Copy link
Member Author

After discussion with pip devs, pypa/pip#11320 is merged and will be released soon, and will allow this to go forward without any of the drawbacks (having to gather wheel tags/not getting scripts) as we can just pass the path to the target interpreter to pip.

@Secrus
Copy link
Member

Secrus commented May 17, 2023

Since we now have installer, I'd rather go towards using installer rather than subprocessing to pip. The ultimate goal should be to remove all calls to pip.

@Secrus Secrus closed this Jul 7, 2023
Copy link

github-actions bot commented Mar 3, 2024

This pull request 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 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants