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

fix: include VIRTUAL_ENV variable #1842

Merged
merged 1 commit into from
May 29, 2024

Conversation

henryiii
Copy link
Contributor

@henryiii henryiii commented May 28, 2024

Include the VIRTUAL_ENV variable when running "in" a virtualenv. This will be useful when we start trying out uv.

Signed-off-by: Henry Schreiner <[email protected]>
@henryiii henryiii requested a review from mayeut May 29, 2024 02:29
@mayeut mayeut merged commit c333b13 into pypa:main May 29, 2024
23 checks passed
@@ -58,6 +58,7 @@ def test_virtualenv(self):

self.assertTrue(path_contains(sys.prefix, sys.executable))
self.assertTrue(path_contains(sys.prefix, spam.__file__))
self.assertIn("VIRTUAL_ENV", os.environ)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just thinking after I've merged the PR...
Should a test like this one be added for build environments as well ? (except on Linux)

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

Successfully merging this pull request may close these issues.

2 participants