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: Fix namespace packages conflict issue #757

Merged
merged 2 commits into from Feb 1, 2021

Conversation

vam-google
Copy link
Contributor

This fixes the googleapis/gapic-generator#3334 by excluding system-wide site-packages dir from python packages resolution path completely.

It is done by simply setting PYTHONNOUSERSITE environment variable and then "re-running" python interpreter replacing the current process, but this time with the site packages excluded.

This pretty much implements the long-standing featrue request for rules_python bazelbuild/bazel#4939, but only in scope of gapic-generator-python.

This fixes the googleapis/gapic-generator#3334 by excluding system-wide site-packages dir from python packages resolution path completely.

This pretty much implements the long-standing featrue request for rules_python bazelbuild/bazel#4939, but only in scope of gapic-generator-python.
@vam-google vam-google requested a review from a team as a code owner January 31, 2021 11:01
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 31, 2021
@codecov
Copy link

codecov bot commented Feb 1, 2021

Codecov Report

Merging #757 (9469a41) into master (6bd6415) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #757   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           27        27           
  Lines         1619      1619           
  Branches       328       328           
=========================================
  Hits          1619      1619           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6bd6415...9469a41. Read the comment docs.

Copy link
Contributor

@noahdietz noahdietz left a comment

Choose a reason for hiding this comment

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

Awesome! LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants