Skip to content

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

Merged
Pierre-Sassoulas merged 1 commit intomainfrom
revert-namespace-change
May 9, 2022
Merged

Revert "Do not append namespace packages to sys.path (#6405)"#6548
Pierre-Sassoulas merged 1 commit intomainfrom
revert-namespace-change

Conversation

@Pierre-Sassoulas
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Should we reopen #5226, and #2648 ?

👍🏻 And add them to 2.15

@Pierre-Sassoulas
Copy link
Copy Markdown
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
Copy Markdown
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