Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
With declarative config, error "Distribution contains no modules or packages for namespace package" #1494
Attempting to use declarative config for jaraco.itertools, I ran the tests here, and everything looks good except if you inspect the environment, a crucial file is missing, the
I tried restoring the namespace package functionality in jaraco/jaraco.itertools@c436dff, but that resulted in this error during the build:
I suspect a race condition where the packages discovered by
changed the title
With declarative config, "Distribution contains no modules or packages for namespace package
Sep 17, 2018
@pganssle This issue is the main issue I'd like to work on this weekend. In my estimation, it's a major blocker to me converting dozens of projects to declarative config. Probably I was mistaken with "race condition" and it's just an "order of operations" issue. I'll investigate.
I am not able to replicate this problem.
I am able to install with the namespace defined in the
Oh, this is interesting. I put a debug breakpoint in dist.py:496, saving the configuration, and found this result:
So that PDB result is in fact useful. It indicates that the
So this issue is twofold:
For this ticket, the solution is for namespace packages to use the correct option and not declare it imperatively.