Tuesday, April 12, 2011

Packaging python packages in opensuse

While getting one of my packages rejected for inclusion into the python lang repo for openSuSE, the comments made by the reviewer pointed me to find the package: py2pack.

This package made the packaging of Python packages on OpenSuSE brain dead easy by doing all of the heavy lifting, creating a sample spec file that really needs very little editing. Install py2pack, and follow this guide, http://en.opensuse.org/openSUSE:Packaging_Python#The_fast_and_automated_way and put that together with the great openSuSE build service and you will have a great time packaging which is usually a thankless job no one wants to do.

Update:

Wow the ruby packaging method is about the same too: http://en.opensuse.org/openSUSE:Packaging_Ruby

3 comments:

Anonymous said...

We, the openSUSE Boosters team are trying to make it easier for people to contribute to openSUSE:Factory.

I am especially interested in Python packages, if you need any help with your contributions please feel free to email me (idoenmez at suse dot de) or find me on IRC. My nickname is cartman.

Cheers!

Anonymous said...

Hi, I'm glad you like it :-) BTW, there is also 'cpanspec' for the Perl side of life.

janny said...

As we build with the same python version as the user will run it later.you can safely package the.pyc files. i would even recommend packaging them so they get removed if you uninstall the package.

www.electrocomputerwarehouse.com