Support of "package_dir" from setup.py #13924
Unanswered
dmitry-lipetsk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I am trying to use Sphinx in project where source code lives in "src" folder and setup.py has declaration
package_dir = {"mypackage": "src"}
Sphinx conf.py has the the code to correct sys.path:
When my rst-file contains:
Sphinx can't find
mypackage.api
module.When my rst-file contains:
it works, but I get the documentation that describes "src.api" but not "mypackage.api".
Does Sphinx has a support for the such project structures?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions