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

feature(virtualenv): add 'system-site-packages' option #3711

Merged
merged 1 commit into from
Mar 21, 2021

Conversation

vlad0337187
Copy link
Contributor

@vlad0337187 vlad0337187 commented Feb 20, 2021

Pull Request Check List

Resolves: #issue-number-here

  • [+] Added tests for changed code.
  • [+] Updated documentation for changed code.

Closes: #1982
Resolves: #1393

@vlad0337187
Copy link
Contributor Author

vlad0337187 commented Feb 20, 2021

This is just a rebase to master for already implemented PR created to fix opened issue

@meakbiyik
Copy link

Great work, this commit will have a huge effect on my SSD capacity 😄

@vlad0337187
Copy link
Contributor Author

@abn , could you review it please when you'll have some free time ?
Thanks.

Copy link
Member

@abn abn left a comment

Choose a reason for hiding this comment

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

Thank you @vlad0337187. The change looks good to me. I have added one comment to help with future code maintanence.

@@ -159,7 +159,7 @@ def test_activate_activates_non_existing_virtualenv_no_envs_file(
m.assert_called_with(
Path(tmp_dir) / "{}-py3.7".format(venv_name),
executable="python3.7",
flags={"always-copy": False},
flags={"always-copy": False, "system-site-packages": False},
Copy link
Member

Choose a reason for hiding this comment

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

Would be great to move this to a fixture so future additions or changes to defaults would be cleaner.

@henryiii
Copy link

This also could be useful on Apple Silicon, where there are no NumPy wheels yet but most systems (homebrew, conda-forge) provide binaries for NumPy.

@abn abn merged commit 38558a1 into python-poetry:master Mar 21, 2021
@daevski
Copy link

daevski commented Mar 22, 2021

Thank you all!!! This will be very useful, I've been waiting on it ;)

Copy link

github-actions bot commented Mar 1, 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 1, 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.

support for venv --system-site-packages
5 participants