This document shows how to create a Debian package for an existing Python library.
Before doing this, it is a good idea to check if there isn't an existing Debian package for the library to be packaged.
For Debian: https://www.debian.org/distrib/packages
For Ubuntu: https://packages.ubuntu.com/