Can anyone please explain, what is 'setup.py' and how can it be configured or used?
setup.py is a python file, which usually tells you that the module/package you are about to install have been packaged and distributed with Distutils, which is the standard for distributing Python Modules.
This allows you to easily install Python packages, often it's enough to write:
python setup.py install
and the module will install itself.
If you downloaded package that has "setup.py" in root folder, you can install it by running
python setup.py install
If you are developing a project and are wondering what this file is useful for, check Python documentation on writing the Setup Script
setup.py
is a Python script that is usually shipped with libraries or programs, written in that language. It's purpose is the correct installation of the software.
Many packages use the distutils
framework in conjuction with setup.py
.
Setup.py is Python's answer to a multi-platform installer and make file. If you familiar with commandline installation process then make && make install - translate to python setup.py build && python setup.py install. Some packages are pure python and are only byte compiled, other packages may contain native code which will require a native compiler like gcc or cl and some python interfacing module like swig or pyrex.
Here is a tutorial on the python wiki on how to use it, as well as how to submit it to the cheese shop: Tutorial
If found another nice tutorial on how to make python eggs: Python egg tutorial