Fix regression in pip parse for finding implicit namespace packages.#504
Conversation
Pathlib.Path normalizes path names, which caused lookups of relative paths using the special '.' directory path to fail to find parents of standard packages.
|
Using the https://github.com/caseyduquettesc/rules_python_demo repro I still have the Running |
|
Mine definitely is What interpreter version do you have on the path? |
|
Hey @caseyduquettesc can you test out this branch against your demo repository and see if it fixes the issue you were having? |
Sure thing. Will get back to you in a couple hours, just got back from some time off. |
|
@hrfuller I used your branch in the example at https://github.com/caseyduquettesc/rules_python_demo and in a private project that has its own python toolchain (3.8.10) and was unable to reproduce the issue in both. Functionally, the change LGTM. |
|
@hrfuller, I verified that this PR also fixes the ModuleNotFoundError: No module named 'azure.storage'. I was using Python 3.6. Cc: @thundergolfer |
|
Can also confirm this removes the All that succeeds. |
thundergolfer
left a comment
There was a problem hiding this comment.
Needs a fix to types, but otherwise good to merge 👍
…names' into hrfuller/fix-499-normalize-path-names
fixes #499
Pathlib.Path normalizes path names, which caused lookups of relative
paths using the special '.' directory path to fail to find parents of
standard packages.
Drive-by change fixes passing quiet argument to child repos.
PR Checklist
Please check if your PR fulfills the following requirements:
.parfiles. See CONTRIBUTING.md for infoPR Type
What kind of change does this PR introduce?
What is the current behavior?
pip_parse fails to find implicit namespace packages.
Issue Number: #499
What is the new behavior?
pip_parse can find implicit namespace packages.
Does this PR introduce a breaking change?
Other information