What is setup.py?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Romantic Lands Beckon
--
Chapters
00:00 What Is Setup.Py?
00:12 Accepted Answer Score 1192
00:43 Answer 2 Score 66
01:03 Answer 3 Score 24
01:26 Answer 4 Score 133
01:54 Thank you
--
Full question
https://stackoverflow.com/questions/1471...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #pypi #setuppy #pythonpackaging
#avk47
ACCEPTED ANSWER
Score 1192
setup.py is a Python file, the presence of which is an indication that the module/package you are about to install has likely 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:
$ pip install . 
pip will use setup.py to install your module. Avoid calling setup.py directly.
ANSWER 2
Score 133
setup.py is Python's answer to a multi-platform installer and make file. 
If you’re familiar with command line installations, then make && make install translates to python setup.py build && python setup.py install. 
Some packages are pure Python, and are only byte compiled. Others may contain native code, which will require a native compiler (like gcc or cl) and a Python interfacing module (like swig or pyrex).
ANSWER 3
Score 66
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
ANSWER 4
Score 24
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.