The difference between installing setup.py install and setup.py

I am trying to improve my workflow when developing python modules and ask a rather simple question.

What exactly happens when choosing an option. According to my information, the developers leave the files in their place, so I can modify them and play with the package, while the installation copies them to the package site folder of my python installation. How is the package related to my python installation when using the development option.

+6
source share
1 answer

develop creates an .egg-link file in the site-packages directory, which indicates the location of the project files. The same path is also added to the easy-install.pth in the same place. Removing with setup.py develop -u deletes this link file again.

Note that the still not found install_requires dependencies are also installed like regular eggs (they are easy_install -ed). These dependencies are not removed when the development egg is removed.

+6
source

Source: https://habr.com/ru/post/959201/


All Articles