I don't understand this python build synax "python3 setup.py build"
<p>Can someone please explain this build syntax here?</p>

<pre><code>python3 setup.py build
sudo python3 setup.py install
</code></pre>

<p>Source: <a href="http://askubuntu.com/a/406410/327339">http://askubuntu.com/a/406410/327339</a></p>

<p>I just used the instructions at the source above to install pygame in python 3.x, and it worked great, but I don't understand the syntax of the commands, and I don't know where to find documentation on it. </p>

<p><code>python3 file.py</code> calls a given module (<code>file.py</code> in this case, or <code>setup.py</code> above), but what about the word <em>after</em> that, ie: "build" in the command above? Is that a built-in Python command, is that a folder where outputs from setup.py are going, or what is it? </p>

<p>Same with the "install" command. Can you please explain that syntax and help me find any relevant documentation? I tried searching around for a while, ex "python3 build", "python 3 module install", "python 3 module build," etc, but can't seem to find anything very informative on the matter.</p>

<p>Also, what exactly are the build and install commands doing?</p>

<p>Note: here is the contents of the "pygame" folder where I am running these commands.</p>

<p><a href="http://i.stack.imgur.com/E4T3E.png" rel="nofollow"><img src="http://i.stack.imgur.com/E4T3E.png" alt="enter image description here"></a></p>

<p>From my use of Python in the terminal, this command tells Python 'python3', so whatever version of Python 3.x your system is running, 'setup.py' is the Python script you're running and 'build' and 'install' are part of the distutils module to make it easier to install modules.</p>

python python-3.x build install