Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Python 2.6? A Python transition?

 
   Soft32 Home -> Linux -> Development RSS
Next:  Accepted webkit 1.1.13-1 (source all amd64)  
Author Message
Russ Allbery

External


Since: Apr 22, 2007
Posts: 376



(Msg. 1) Posted: Tue Aug 25, 2009 1:20 pm
Post subject: Python 2.6? A Python transition?
Archived from groups: linux>debian>devel (more info?)

Hello folks,

I have a sneaking suspicion that this is a known issue, but I haven't seen
anything to debian-devel-announce and I'm not very plugged in to Python
handling in Debian, so I thought I'd just explicitly ask (and suggest that
if there's a known resolution someone mail it to debian-devel-announce).

I have a few packages that build either Python modules or that embed
Python. I see that for the one that builds Python modules (remctl),
Ubuntu has patched it for a Python 2.6 transition using new makefile
machinery that I don't entirely understand but which seems reasonably
straightforward. However, I don't know if Debian is doing the same thing
and if just applying that patch would be useful. For the package that
embeds Python (gnubg), I'm not sure what I'm supposed to be doing.

Is there a best practice guide somewhere, and if we are doing a
transition, a guide for those of us who only have ancillary involvement in
Python packaging telling us what to do?

--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>


--
To UNSUBSCRIBE, email to debian-devel-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Login to vote
Luca Falavigna

External


Since: Aug 26, 2009
Posts: 24



(Msg. 2) Posted: Wed Aug 26, 2009 11:10 am
Post subject: Re: Python 2.6? A Python transition? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Russ Allbery ha scritto:
> Is there a best practice guide somewhere, and if we are doing a
> transition, a guide for those of us who only have ancillary involvement in
> Python packaging telling us what to do?

Some references can be found here (and in follow-ups):
http://lists.debian.org/debian-devel/2009/02/msg00431.html
http://lists.debian.org/debian-python/2009/03/msg00091.html
https://lists.ubuntu.com/archives/ubuntu-devel/2009-May/028266.html

Regards,

- --

.''`.
: :' : Luca Falavigna <dktrkranz.DeleteThis@debian.org>
`. `'
`-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqU94cACgkQnXjXEYa8KlD/mgCgnyVOIUQbbQs5X66Bj5p94Ium
xGwAn1OIoZnanQJW59owXVhaLGUrX2zb
=Unfy
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-devel-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Login to vote
Bernd Zeimetz

External


Since: Dec 16, 2006
Posts: 123



(Msg. 3) Posted: Wed Aug 26, 2009 11:10 am
Post subject: Re: Python 2.6? A Python transition? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Josselin Mouette wrote:
> There are two problems with adding Python 2.6 to the supported versions.
>
> First, the installation path changed from site-packages to
> dist-packages. This means that most Python packages will need two
> changes:
> * passing --install-layout=deb to setup.py
> * fixing paths from site-packages to *-packages (since the path
> now depends on the Python version, yay)

Also see /usr/share/python/python.mk for some good ideas on how to handle this.
If you need some examples - look into the python-modules team svn, some of the
packages have been changed for Python 2.6 already.


Cheers,

Bernd

--
Bernd Zeimetz Debian GNU/Linux Developer
GPG Fingerprints: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79
ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F


--
To UNSUBSCRIBE, email to debian-devel-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Login to vote
Bernd Zeimetz

External


Since: Dec 16, 2006
Posts: 123



(Msg. 4) Posted: Wed Aug 26, 2009 11:21 am
Post subject: Re: Python 2.6? A Python transition? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Michal ÄŒihaÅ™ wrote:
> Hi
>
> Dne Wed, 26 Aug 2009 11:00:40 +0200
> Josselin Mouette <joss.RemoveThis@debian.org> napsal(a):
>
>> To put it simply:
>> * Most packages using cdbs should be safe.
>> * Some packages using dh (most of those building only one binary
>> package) should be safe.
>> * All the rest needs updating, at least for the new setup.py
>> option.
>
> Well for most packages it just means merging back Ubuntu changes ...
> just if maintainer would be notified about them, it would make it much
> easier.

Unfortunately the transition was messed up in Ubuntu at too many places.
Including disabling unit tests to make the package "build" with Python 2.6. You
need to make sure that the Ubuntu patches really do what you expect them to do.

In a lot of cases it may be easier to migrate to dh Smile


--
Bernd Zeimetz Debian GNU/Linux Developer
GPG Fingerprints: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79
ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F


--
To UNSUBSCRIBE, email to debian-devel-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Russ Allbery

External


Since: Apr 22, 2007
Posts: 376



(Msg. 5) Posted: Thu Aug 27, 2009 11:20 pm
Post subject: Re: Python 2.6? A Python transition? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Josselin Mouette <joss.RemoveThis@debian.org> writes:

> First, the installation path changed from site-packages to
> dist-packages. This means that most Python packages will need two
> changes:

> * passing --install-layout=deb to setup.py

Okay, that's easy enough. I assume that doesn't break builds for Python
2.5 (or 2.4, to the extent it's still supported)?

> * fixing paths from site-packages to *-packages (since the path
> now depends on the Python version, yay)

I may be confused by this, but so far as I can tell, I don't have to do
anything for this to work for the module I'm looking at. Under what
circumstances would you expect for a package to need to be modified to
deal with this?

> Second, the maintainer stated on IRC he doesn’t want to upload it to
> unstable until the packaging helpers are rewritten *again*, with a
> proposal that has some advantages but that clearly lose when compared to
> the amount of work it implies. Given that so far only Piotr has
> volunteered to work on it (the maintainer won’t do it himself), that
> leaves us with no reasonable chance to have python2.6 in the squeeze
> timeframe unless he is convinced to delay this rewrite.

Oh, okay, so I also can't easily test with Python 2.6 in Debian without
installing the package from experimental.

The package I'm looking at is a package for a client and server
application that also builds Perl, Python, and PHP bindings for its client
library, so the Makefile machinery is more complex than just using
distutils and needs the bits of glue pushed into its build machinery. But
I think I have it sorted out, apart from not being positive it's going to
work with 2.6.

--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>


--
To UNSUBSCRIBE, email to debian-devel-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Mark Felder

External


Since: Mar 03, 2009
Posts: 2



(Msg. 6) Posted: Fri Aug 28, 2009 3:20 am
Post subject: Re: Python 2.6? A Python transition? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have a program that depends on 2.6 but I can't seem to get the
required modules to install in squeeze/sid. The ones in the package
management system only work for 2.5. Is there some big transition
coming?

Mark

On Aug 27, 2009, at 21:05, Russ Allbery <rra RemoveThis @debian.org> wrote:

> Josselin Mouette <joss RemoveThis @debian.org> writes:
>
>> First, the installation path changed from site-packages to
>> dist-packages. This means that most Python packages will need two
>> changes:
>
>> * passing --install-layout=deb to setup.py
>
> Okay, that's easy enough. I assume that doesn't break builds for
> Python
> 2.5 (or 2.4, to the extent it's still supported)?
>
>> * fixing paths from site-packages to *-packages (since the path
>> now depends on the Python version, yay)
>
> I may be confused by this, but so far as I can tell, I don't have to
> do
> anything for this to work for the module I'm looking at. Under what
> circumstances would you expect for a package to need to be modified to
> deal with this?
>
>> Second, the maintainer stated on IRC he doesn’t want to upload it
>> to
>> unstable until the packaging helpers are rewritten *again*, with a
>> proposal that has some advantages but that clearly lose when
>> compared to
>> the amount of work it implies. Given that so far only Piotr has
>> volunteered to work on it (the maintainer won’t do it himself), t
>> hat
>> leaves us with no reasonable chance to have python2.6 in the squeeze
>> timeframe unless he is convinced to delay this rewrite.
>
> Oh, okay, so I also can't easily test with Python 2.6 in Debian
> without
> installing the package from experimental.
>
> The package I'm looking at is a package for a client and server
> application that also builds Perl, Python, and PHP bindings for its
> client
> library, so the Makefile machinery is more complex than just using
> distutils and needs the bits of glue pushed into its build
> machinery. But
> I think I have it sorted out, apart from not being positive it's
> going to
> work with 2.6.
>
> --
> Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/
> >
>
>
> --
> To UNSUBSCRIBE, email to debian-devel-REQUEST RemoveThis @lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
>


--
To UNSUBSCRIBE, email to debian-devel-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Login to vote
Luca Falavigna

External


Since: Aug 26, 2009
Posts: 24



(Msg. 7) Posted: Fri Aug 28, 2009 3:20 am
Post subject: Re: Python 2.6? A Python transition? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Russ Allbery ha scritto:
>> First, the installation path changed from site-packages to
>> dist-packages. This means that most Python packages will need two
>> changes:
>
>> * passing --install-layout=deb to setup.py
>
> Okay, that's easy enough. I assume that doesn't break builds for Python
> 2.5 (or 2.4, to the extent it's still supported)?

- --install-layout option has been implemented (as a no-op) both in
python2.5 (>= 2.5.3-1~exp1) and python2.4 (>= 2.4.6-2~exp1).

- --

.''`.
: :' : Luca Falavigna <dktrkranz.RemoveThis@debian.org>
`. `'
`-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqXgKcACgkQnXjXEYa8KlDUfwCePZ3WG+wLRDUM2Te1L7CAkja6
io0An15fxktJObjGFZdwLtzkT3gsWTUf
=wVCq
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-devel-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Resolved bugs keeping packages out of testing? - Hi, I have several "excuses" pages that resemble this one: http://qa.debian.org/excuses.php?package=darcs-b...

[gentoo-user] Transition to Python-2.5 ? - Hi, I'm installing GenToo on several machines for the first time. I'd like to switch to Python-2.5 from the very..

[gentoo-user] python emerge appears to have broken my pyth.. - Hey all. I updated my home server today, and while looking through the resultant emails from portage, I find this..

[gentoo-user] emerge dev-python/python-fchksum-1.7.1 fails.. - -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Dear list, emerge of dev-python/python-fchksum-1.7.1 fails (for...

kdevelop -> kdebindings3-python -> python-qt - Kdevelop läßt sich nicht installieren ohne kdebindings3-python, kdebindings3-python läßt sich nicht installieren ohne..

FTBFS: python - And this is what happens when compiling python2.3: gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC..
       Soft32 Home -> Linux -> Development All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]