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.
-
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.cfg
andsetup.py
specify both thepackage_dir
andwhere
arguments, whereas this is not the case with the codes forpyproject.toml
: they specify only thewhere
argument, notpackage_dir
.What I mean is: consider the simple package discovery section -
setup.cfg
setup.py
pyproject.toml
Basically the
pyproject.toml
snippet does not specify thepackage_dir
argument but the other two do, along with thewhere
argument.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_dir
andwhere
convey the same information (thesrc
directory), 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