Skip to content Skip to sidebar Skip to footer

When Does Setuptools Install Editable Link To /.../my_module/build/lib/ Andwhen Does It Link To /.../my_module?

I noticed that when I do an editable install (pip install --user -e .), sometimes, setuptools make a build directory and egg-links to /.../my_module/build/lib. While sometimes (if

Solution 1:

The setuptools build_py command seems to be automatically called when there is a build step specified int the setup.py, typical example is use_2to3=True. Then, the "editable" is not "respected" in a way, since you need to rebuild each time.

Solution 2:

as far as I understand you, in order to use a third-party module without installing it, just in the same place where your program is located, create a new directory, put the __ init __.py file and copy the third-party module there. And then you can in your code address it like this

Post a Comment for "When Does Setuptools Install Editable Link To /.../my_module/build/lib/ Andwhen Does It Link To /.../my_module?"