Skip to content
Advertisement

Installing a Python program on Linux

I wrote a Python program. I would like to add to it an installation script that will set up everything necessary – like desktop icon, entry in the menu, home directory file, etc.

I’m working on Linux (ubuntu). When a Python program is installed, what needs to happen in general? I know that it probably depends on the nature of the program.

Can you give me some general ideas? Or, point me in the right direction? I have no idea how to look for this on Google.

Thanks

Advertisement

Answer

If it’s a Python program you’re trying to package, you should consider using its ‘standard’ distribution framework distutils. I can’t replicate the entire document here but I’d recommend that you read it. Once you’re done with that, check out the Hitchhikers guide to packaging which contains details on distribute – the extensions to distutils that allow you to package and distribute more effectively.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement