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

Allow system interpreters set by VIRTUAL_ENV to be used without opt-in #4018

Closed
wants to merge 1 commit into from

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Jun 4, 2024

Closes #3905

Allows an active virtual environment to be used even if it's not PEP 405 compliant (unless SystemPython::Disallowed is passed; which I don't think we ever do right now in user-facing code). User reports indicate that PEP 405 compliance may be too high of a bar. We will emit a debug log noting this, but otherwise not warn — we may want a more user-facing warning.

@zanieb zanieb changed the title Treat interpreters from VIRTUAL_ENV as explicit selection of a "system" interpreter Allow system interpreters to be used when from VIRTUAL_ENV Jun 4, 2024
@zanieb zanieb added the virtualenv Related to virtual environments label Jun 4, 2024
@zanieb zanieb changed the title Allow system interpreters to be used when from VIRTUAL_ENV Allow system interpreters set by VIRTUAL_ENV to be used without opt-in Jun 4, 2024
@zanieb zanieb marked this pull request as ready for review June 4, 2024 18:25
@zanieb
Copy link
Member Author

zanieb commented Jun 4, 2024

I'm a little hesitant here, but it seems common enough to allow it?

@zanieb
Copy link
Member Author

zanieb commented Jun 4, 2024

I thought this included #4009 but it actually doesn't resolve that. I'm leaning towards waiting on this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
virtualenv Related to virtual environments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv 0.2 rejects the interpreter, system interpreter not allowed
1 participant