Skip to content

how to install a namespace package with hatch ? #1243

Answered by ofek
12rambau asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there! The packages option is for the case where your code lives under a directory like src/ and will collapse until the last path component. So if your namespace package lived under such a directory then you could set that to src/sphinxcontrib but since it does not you will probably want to do:

[tool.hatch.build.targets.wheel]
only-include = ["sphinxcontrib"]

Note that you could also use the regular include option there but that would still have to recurse other directories, so just a performance hack.

Replies: 1 comment

Comment options

ofek
Feb 5, 2024
Maintainer Sponsor

You must be logged in to vote
0 replies
Answer selected by 12rambau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants