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

Don't append system PATH to context when finding the python executables #47

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

JeanChristopheMorinPerso
Copy link
Owner

@JeanChristopheMorinPerso JeanChristopheMorinPerso commented Oct 12, 2023

Fixes #45.

This PR fixes an issue where ResolvedContext.which would return a python executable from outside a rez package.

I still need to add a test for this. Creating a PR now to get some visibility.

@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #47 (139aa5d) into main (3cc36bc) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
+ Coverage   77.52%   77.55%   +0.03%     
==========================================
  Files           8        8              
  Lines         703      704       +1     
  Branches      146      146              
==========================================
+ Hits          545      546       +1     
  Misses        150      150              
  Partials        8        8              
Files Coverage Δ
src/rez_pip/cli.py 64.12% <ø> (ø)
src/rez_pip/rez.py 66.92% <100.00%> (+0.26%) ⬆️

@JeanChristopheMorinPerso
Copy link
Owner Author

I added a test. It's failing on Windows due to an encoding issue. I'm not too sure what's going on. I'll need to take a deeper look at it. But at least the test effectively asserts that the change does what it's supposed to (the test fails if I remove the fix).

@JeanChristopheMorinPerso JeanChristopheMorinPerso force-pushed the dont_append_sys_path branch 3 times, most recently from 15656f0 to 4aa11e9 Compare October 12, 2023 15:34
@JeanChristopheMorinPerso JeanChristopheMorinPerso marked this pull request as ready for review October 12, 2023 15:35
@JeanChristopheMorinPerso JeanChristopheMorinPerso merged commit 4cec775 into main Oct 12, 2023
19 checks passed
@JeanChristopheMorinPerso JeanChristopheMorinPerso deleted the dont_append_sys_path branch October 12, 2023 15:42
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.

Unexpected python executable can be used by rez-pip
1 participant