-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
try using --no-site-packages
#2036
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
Conversation
Perhaps the flag should be added to |
If #2037 passes let's use that. |
@@ -131,6 +131,7 @@ def main(): | |||
runs += 1 | |||
flags = ['--python-version', '%d.%d' % (major, minor)] | |||
flags.append('--strict-optional') | |||
flags.append('--no-site-packages') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this should be gated by Python version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean that we should do this only for Python versions for which we don't have a binary? I don't think that's worth it, since for typeshed's purposes we don't want to look at site-packages in any case. Actually, our CI might get confused when PEP 561-enabled packages start showing up in the venv we use to run tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point. I think this change LGTM then.
Fixes #2035.