This question already has an answer here:
I have a Python 3.2 script that I'd like to package for Ubuntu and Debian. I've certainly looked for documentation but I wasn't sure that I was getting the latest and greatest/easiest methods.
If someone with enough knowledge could please point me to the most recent guide on how to do this, it would be very useful to me.
Additionally, given a bit of what I have seen I might need a setup.py file too? If so I need to learn about that too.