package_dir vs where #3337
Replies: 2 comments 8 replies
-
|
I sort of missed noticing this while drafting the original PR for the Package Discovery page. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @codeandfire, this is a new development... When I was implementing support for configuration via I definitely implemented that for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @abravalheri,
I was just going through the Package Discovery docs page again, and I noticed that the example codes in the Custom Discovery section for
setup.cfgandsetup.pyspecify both thepackage_dirandwherearguments, whereas this is not the case with the codes forpyproject.toml: they specify only thewhereargument, notpackage_dir.What I mean is: consider the simple package discovery section -
setup.cfg
setup.py
pyproject.toml
Basically the
pyproject.tomlsnippet does not specify thepackage_dirargument but the other two do, along with thewhereargument.The snippets for the namespace package discovery section are similar:
setup.cfg
setup.py
pyproject.toml
Again the same situation holds.
Therefore I think there is some inconsistency here and should be corrected ...
Noting that both
package_dirandwhereconvey the same information (thesrcdirectory), perhaps one of them is redundant?I wanted to know whether both arguments are required, and if not, which argument is more preferred than the other?
Beta Was this translation helpful? Give feedback.
All reactions