Skip to content

Should I use --no-root ? Some description of building problems, and lots of strange behaviour #3924

Answered by finswimmer
aahnik asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @aahnik,

this is (more or less) an expected behavior, due to how editable installs works. A path configuration file is used to add the root folder of the package to the search path for modules. This means that the src folder is now included in this search path and every package folder that is located there, can be found as well.

This is a good reason why you want to use tox for testing, which will build your package and install it into a new venv for testing. You can see how I do this here

fin swimmer

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aahnik
Comment options

Answer selected by aahnik
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