I’m having a hard time finding a conclusive answer for how to compile a Python 2.7 .py file into a executable program for Debian. Most tutorials say “we assume you’ve already written the manifest, etc.”, but I cannot find how to do those first steps.
So, I need a step-by-step. How do I take JUST a .py file (using Python 2.7 and PyGTK) and a few .pdf and .png files that go with it, and compile all of that into a working Debian binary?
(Note: If the tutorial starts out with a tar.gz, or requires a setup.py or similar already written, I need instructions on how to get those files too.)
deb files are packages: an archive that extracts files into certain predetermined places and may run some configuration scripts. It really depends on how the developer needs to deploy the package. A python file may be a part of a deb package, but once it’s deployed and extracted it is extracted as a python file. If you need a binary version of a python file, you will need to look at other means.
Take a look at the following:
http://en.wikipedia.org/wiki/Deb_%28file_format%29
http://tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/