Skip to content

pkgutil-style namespace packages seem to be broken with pip_parse #527

Closed

Description

@phlax

🐞 bug report

Affected Rule

pip_parse

Is this a regression?

sort of - it works ok with pip_install

Description

Attempting to install some packages (sphinx using html builder) that rely on pkgutil-style namespacing

Importing from the namespace packages breaks - debugging and importing the top-level namespace i see it pointing to one of the namespace packages, but the __init__.py file in the namespace package is empty, rather than having the pkgutil registration that the upstream has

🔬 Minimal Reproduction

try to install sphinx and some sphinxcontrib packages with pip_parse

🔥 Exception or Error





🌍 Your Environment

Operating System:

  
# uname -a
Linux iota 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux

# cat /etc/debian_version 
10.10
  

Output of bazel version:

  
bazel 4.1.0
  

Rules_python version:

  
0.0.3
  

Anything else relevant?

Activity

  1. phlax commented on Sep 9, 2021

    @phlax
    ContributorAuthor

    seems this is fixed in main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions