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

Re: how to make python package binNMU-safe [Bug#361940: python-mysqldb: can't be binNMUed due to arch: all -> arch: any dep]



Em Qua, 2006-04-12 às 20:05 +0200, Raphael Hertzog escreveu:
> On Thu, 13 Apr 2006, Sanghyeon Seo wrote:
> > >  It should install modules somewhere inside
> > >  /usr/lib/python/site-packages/ and use #!/usr/bin/python for
> > >  programs. The postinst script should create symlinks in all
> > >  /usr/lib/pythonX.Y/site-packages/ directories that point to its
> > >  /usr/lib/python/site-packages/ files and compile them.
> > 
> > You can do this with python-support today. See python-cherrypy package
> > for an example.
> 
> Interesting, but I think this will not work "out of the box" for packages
> that should provide Python eggs. 
> 
> I just checked python-cherrypy and I noticed that it only provides
> /usr/share/python-support/cherrypy/CherryPy-2.1.1-py2.3.egg-info
> (there's no egg for python 2.4 version). It should provide both.

Hey!

This doesn't seem to be a problem:

kov@alface:~$ ls /var/lib/python-support/python2.4/CherryPy-2.1.1-py2.3.egg-info/
PKG-INFO  SOURCES.txt  top_level.txt
kov@alface:~$ python2.4
Python 2.4.3 (#2, Mar 30 2006, 21:52:26)
[GCC 4.0.3 (Debian 4.0.3-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources.require ('CherryPy')
[CherryPy 2.1.1 (/var/lib/python-support/python2.4)]
>>>

What I should do, I think, is remove 'py2.3.' from that name altogether.
This seems to be a clean solution.

See you,

-- 
kov@debian.org: Gustavo Noronha <http://people.debian.org/~kov>
Debian:  <http://www.debian.org>  *  <http://www.debian-br.org>

Attachment: signature.asc
Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente


Reply to: