-
|
My question is about this code snippet Than can be found behind this link in the second source block: https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#using-a-src-layout Why is there a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
There's a reason. The equivalent where the empty string indicates that all of the packages in the project are under |
Beta Was this translation helpful? Give feedback.
-
|
Mhm... For newbie users it looks a bit wired and "wrong". |
Beta Was this translation helpful? Give feedback.
There's a reason. The equivalent
setup.pyconfiguration is:where the empty string indicates that all of the packages in the project are under
src/(as opposed to doing something likepackage_dir={"package_name": "src"}, which indicates that justpackage_nameis undersrc/). The leading=in thesetup.cfgis then the direct translation of this syntax.