Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#557916: poker-network: uses pythonX.Y/site-packages for Python >= 2.6

0 views
Skip to first unread message

Jakub Wilk

unread,
Nov 25, 2009, 4:20:02 AM11/25/09
to
Source: poker-network
Version: 1.7.5-1.1
Severity: important
User: debian...@lists.debian.org
Usertags: python2.6 dist-packages

Hello,

When rebuilt against python-all{,-dev,-dbg} (and thus python2.6) from
Debian experimental, your binary packages contained these files:

[python-poker-prizes_1.7.5-1.1_all.deb]
/usr/lib/python2.6/site-packages/pokerprizes/prizes.py
/usr/lib/python2.6/site-packages/pokerprizes/__init__.py
/usr/lib/python2.6/site-packages/pokerprizes/tourneyselectinfo.py

This is an indication of a broken package: Python >= 2.6 does not
look for modules into /usr/lib/pythonX.Y/site-packages/ anymore, but
uses /usr/lib/pythonX.Y/dist-packages/ instead.

How to fix it?
==============
* if your package is using python-central:
- add "XB-Python-Version: ${python:Versions}" to all binary packages
that ship Python modules (.py files) or extensions (.so, including
_d.so) in debian/control, check if it's enough,
- try to convert to python-support[1], check if it's enough,
* add --install-layout=deb to setup.py call and bump minimum required
python{,-all,all-dev} build dependency to 2.5.4-1~, check if it's enough
* ask for help on #debian-python or debian...@lists.debian.org

[1] http://wiki.debian.org/DebianPython/central2support

--
Jakub Wilk

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Jakub Wilk

unread,
Jan 16, 2010, 8:50:02 AM1/16/10
to
tags 557916 + patch
thanks

* Jakub Wilk <uba...@users.sf.net>, 2009-11-25, 10:09:


>When rebuilt against python-all{,-dev,-dbg} (and thus python2.6) from
>Debian experimental, your binary packages contained these files:
>
>[python-poker-prizes_1.7.5-1.1_all.deb]
>/usr/lib/python2.6/site-packages/pokerprizes/prizes.py
>/usr/lib/python2.6/site-packages/pokerprizes/__init__.py
>/usr/lib/python2.6/site-packages/pokerprizes/tourneyselectinfo.py
>
>This is an indication of a broken package: Python >= 2.6 does not
>look for modules into /usr/lib/pythonX.Y/site-packages/ anymore, but
>uses /usr/lib/pythonX.Y/dist-packages/ instead.

The attached patch fixes this problem.

--
Jakub Wilk

557916.diff
signature.asc
0 new messages