PDA

View Full Version : Compiling python from scource, and then into a deb



The-ITu
September 26th, 2009, 02:32 AM
hi,
I just created this awesome python application and i want to spread it around, but every one has python.
I was just wondering if I could compile python source into a linux executable like py2exe, and then compile the executable into a .deb installer file.

any help would be appreciated.
thanks, The-ITu

-grubby
September 26th, 2009, 06:49 AM
hi,
I just created this awesome python application and i want to spread it around, but every one has python.

I was just wondering if I could compile python source into a linux executable like py2exe, and then compile the executable into a .deb installer file.

I googled around a little for guides on making .debs, you may want to check out http://www.debian.org/doc/maint-guide/.

As for compiling Python, well, you don't. On linux, you just make your package depend on Python.

The-ITu
September 28th, 2009, 08:53 AM
ok thanks.....

dinxter
September 28th, 2009, 09:08 AM
theres also tutorials, logs from past years developer weeks and all sorts of how to package stuff
https://wiki.ubuntu.com/Packaging/Training
the resources section has a number of good tutorials

lexen
December 20th, 2009, 05:27 PM
Hello, I am trying to do this as well. I know that you can run python from source, as I do often, but I would still like to compile it into an ubuntu package for distribution purposes. I did not find anything at the link that specificly explained how to compile a python package, though there is a good chance I missed it. Is there any link that goes through the specific steps?


Thanks,
Lexen

SevenMachines
December 20th, 2009, 05:32 PM
you might want to look over the python packaging guide (https://wiki.ubuntu.com/PackagingGuide/Python) for some pointers

lexen
December 20th, 2009, 06:46 PM
Thank you! That was very helpful. I read through it all, and while I didn't get the example to work, I think it is setting me on the right track.

Thanks!