Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Packaging Python Libraries for Python3

User discussion about Debian Development, Debian Project News and Announcements. Not for support questions.
Post Reply
Message
Author
Jeff91
Posts: 18
Joined: 2009-02-09 21:46
Location: Alsip, IL

Packaging Python Libraries for Python3

#1 Post by Jeff91 »

Apologies if this is the wrong forum category for this type of question.

Does anyone know of a good resource (ideally with a simple example) on how to package a python library for python3 as opposed to python2 on Debian? I've been through this wiki page -> https://wiki.debian.org/Python/Packaging

But it doesn't have a clear cut example on it and I haven't been able to decipher what exactly I need to do differently to get a debian package to build for Python3 as opposed for python2. If I was just installing on a local system I could just do:

Code: Select all

python3 setup.py install
But I want to be able to distribute the software via dpkg to my users. The source I am looking to build a python3 package for can be found here -> https://build.enlightenment.org/job/bas ... fact/dist/

Thanks for any suggestion!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Packaging Python Libraries for Python3

#2 Post by stevepusser »

Have you checked out this page yet? https://wiki.debian.org/Python/LibraryStyleGuide

You may be able to use a tiny debhelper rules file as in the example.

It looks like there was already an attempt at a Debian package, but the python 2.7 version did not work: https://bugs.debian.org/cgi-bin/bugrepo ... bug=740087

Maybe if you just restrict it to just Python 3, it'll work.
MX Linux packager and developer

Jeff91
Posts: 18
Joined: 2009-02-09 21:46
Location: Alsip, IL

Re: Packaging Python Libraries for Python3

#3 Post by Jeff91 »

The instructions on the Library page are getting me a basically empty debian file for python3. For reference my rules and control files are here -> https://github.com/JeffHoogland/bodhibu ... python-efl

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Packaging Python Libraries for Python3

#4 Post by stevepusser »

Maybe the guy on that ITP for Debian could help..I don't have all the build-deps listed but maybe this debian folder would be of more help: https://copy.com/uiryWxPnNwzWANnW

Apparently this is a weird C and Python hybrid (Cython) package...
MX Linux packager and developer

Post Reply