I need a script to create a Debian package (using python-support) from a Python package. The Python package will be pure Python (no C extensions).
## Deliverables
I need a script to create a Debian package (using Python support) from a Python package. The Python package will be pure Python (no C extensions).
The Python package (for testing purposes) will just be a directory with an empty [login to view URL] file and a single Python module, package_test.py.
The packaging script *must* use python-support to provide the correct bytecode for possible multiple installations of Python on a target platform. (i.e. v2.5 and v2.6 on Ubuntu Jaunty.)
All parameters required for packaging must come from a separate file, or be defined at the start of the script. The script *must* run without user interaction. (It will be used for automated builds.) The script must be a bash script.
This a specialised requirement - only developers with previous Debian/Python packaging experience will have much of a clue about python-support.
The deliverables will be a script, a list of prerequisite debian packages (in order for the script to work on Ubuntu 8.10 and 9.04) and, optionally, a configuration file for the script. If the configuration file is not provided, configuration must be done by parameters set at the beginning of the script.
Running the script on Ubuntu 8.10/9.04 with suitable configuration (name of Debian package, directory of Python package, author's email, etc.) will produce a .deb package which will successfully install onto Ubuntu 8.10/9.04. It will put its files in /usr/lib/python-support/python- and creating the correct bytecode for all installed versions of Python (using python-support).
If anyone needs any clarification as to these requirements, please let me know.