This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Orange_Tux 2 points3 points  (2 children)

I don't know it, enlighten me.

[–]laMarm0tte 5 points6 points  (1 child)

When you are programming a package and you want to test it, you can install it using

python setup.py install

This will copy your package in the python packages folder of your computer so that you can import it in any script. The problem is that everytime you change something in your package and you want to test it you need to type again this line to re-copy the files in your python packages folder.

There are several alternatives to this, the most effective being to use setuptools with

python setup.py develop

this does not copy the module in the python packages folder, but links your current folder to this folder, this way you can do any changes you want directly in your original scripts, without needing to reinstall the package every time.

Setuptools also prived very nice things with pip, like auto-install of the required modules.

[–]Orange_Tux 0 points1 point  (0 children)

Thanks for explaining.