Skip to content

To much = in the doc about setup.cfg for src-layout projects? #3194

Answered by jwodder
buhtz asked this question in Q&A
Discussion options

You must be logged in to vote

There's a reason. The equivalent setup.py configuration is:

setup(
    package_dir={
        "": "src",
    },
    ...
)

where the empty string indicates that all of the packages in the project are under src/ (as opposed to doing something like package_dir={"package_name": "src"}, which indicates that just package_name is under src/). The leading = in the setup.cfg is then the direct translation of this syntax.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by buhtz
Comment options

You must be logged in to vote
2 replies
@abravalheri
Comment options

@buhtz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants