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

Revert "Do not append namespace packages to sys.path (#6405)" #6548

Merged
merged 1 commit into from
May 9, 2022

Conversation

Pierre-Sassoulas
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix
βœ“ ✨ New feature
βœ“ πŸ”¨ Refactoring
βœ“ πŸ“œ Docs

Description

This reverts commit 603be84. See #6538 (comment)

Should we reopen #5226, and #2648 ?

@Pierre-Sassoulas Pierre-Sassoulas added the Maintenance Discussion or action around maintaining pylint or the dev workflow label May 8, 2022
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.14.0 milestone May 8, 2022
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2290019500

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.004%) to 95.341%

Totals Coverage Status
Change from base Build 2289989458: -0.004%
Covered Lines: 16003
Relevant Lines: 16785

πŸ’› - Coveralls

@jacobtylerwalls
Copy link
Member

I hope to write a regression test case. Maybe we should merge that before reverting this. I think in trying to distill a minimal example I simplified it too much πŸ˜“

@jacobtylerwalls
Copy link
Member

I think in trying to distill a minimal example I simplified it too much πŸ˜“

Turned out it was just that generic names like "test", "a", and "b" were ambiguous on my system. Using unique names helps to reproduce. I'll try to get a PR going with a test.

@jacobtylerwalls
Copy link
Member

Er.... it was actually that the parent of the namespace directory needed to be on sys.path! See #6553 for the test.

@jacobtylerwalls
Copy link
Member

Should we reopen #5226, and #2648 ?

πŸ‘πŸ» And add them to 2.15

@Pierre-Sassoulas
Copy link
Member Author

@DanielNoord should we merge #5235 then ? Permitting user to disable sys.path patching when it make sense could be a temporary solution ?

@Pierre-Sassoulas Pierre-Sassoulas merged commit f020b2f into main May 9, 2022
@Pierre-Sassoulas Pierre-Sassoulas deleted the revert-namespace-change branch May 9, 2022 07:05
@DanielNoord
Copy link
Collaborator

@DanielNoord should we merge #5235 then ? Permitting user to disable sys.path patching when it make sense could be a temporary solution ?

Like I said previously, I don't think so until we have fully investigated the issue. We would only end up having to support an option that does not mimic actual Python behaviour. Until we are sure we can't fix our handling of namespace packages we shouldn't do so I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants