[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#556148: installs files into /usr/local for Python >= 2.6



On 13 November 2009 at 22:54, Piotr Ożarowski wrote:
| Package: nwsclient
| Version: 1.6.4-1
| Severity: important
| User: debian-python@lists.debian.org
| Usertags: python2.6 usr-local
|
| Hi,
| 
| Starting from Python 2.6, the installation paths for distutils have
| changed. /usr/local is now used by default.
| 
| When rebuilt against python-all{,-dev,-dbg} (and thus python2.6) from Debian
| experimental, your package contained these files:

I don't have access to experimental in my pbuilder. So how should I test this?
 
|  nwsclient:drwxr-xr-x root/root         0 2009-11-13 04:20 ./usr/local/
|  nwsclient:drwxr-xr-x root/root         0 2009-11-13 04:20 ./usr/local/bin/
|  nwsclient:-rwxr-xr-x root/root      7313 2009-11-13 04:20 ./usr/local/bin/PythonNWSSleighWorker.py
|  nwsclient:-rwxr-xr-x root/root      2882 2009-04-27 23:18 ./usr/local/bin/PythonNWSSleighWorker
|  nwsclient:-rwxr-xr-x root/root      2394 2009-11-13 04:20 ./usr/local/bin/pybabelfishd
|  nwsclient:-rwxr-xr-x root/root       845 2009-11-13 04:20 ./usr/local/bin/pybabelfish
| 
| How can it be fixed?
| ====================
| * try to pass "--prefix=/usr" to setup.py call, check if it's enough,
| * 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,

I already did that, so I guess it is not 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-python@l.d.o

I would appreciate help. nwsclient is a simple package, this ought to be
straightforward.  

Dirk

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

-- 
Three out of two people have difficulties with fractions.


Reply to: