Bug#587373: [Build-common-hackers] Bug#587373: cdbs: python-distutils.mk: Installs scripts with a versioned shebang

2010-06-30 Thread Stefano Rivera
tag 587373 - patch
thanks

 Would you happen to know if that option is new or we can safely use this  
 also for e.g. backports?

I don't know. I need to do some more historical research.

 Would it perhaps be better to always pass this option, also for specific  
 versions of Python?

The problem isn't with versions of python, but the different libraries
that setup.py may be using.

It looks like I need to do some more testing, I've found some packages
that would FTBFS with this.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 465 6908 C: +27 72 419 8559  UCT: x3127



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



Bug#587373: [Build-common-hackers] Bug#587373: cdbs: python-distutils.mk: Installs scripts with a versioned shebang

2010-06-30 Thread Jonas Smedegaard

On Wed, Jun 30, 2010 at 02:12:18PM +0200, Stefano Rivera wrote:
Would you happen to know if that option is new or we can safely use 
this also for e.g. backports?


I don't know. I need to do some more historical research.


ok.


Would it perhaps be better to always pass this option, also for 
specific versions of Python?


The problem isn't with versions of python, but the different libraries 
that setup.py may be using.


It seems we are talking about different things: I proposed that (in the 
cases where your proposed option works) not only the unversioned python 
path is ensured when using the default Python, but also the versioned 
python path is used when using a non-default Python (e.g. for a project 
where Python 2.6 is not supported, built for a system where Python 2.6 
is the default compiler).



It looks like I need to do some more testing, I've found some packages 
that would FTBFS with this.


Too bad.

Even if you cannot solve it, please do post more details about it, in 
case others reading this might have ideas.



Regards,

 - Jonas

--
 * Jonas Smedegaard - idealist  Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: Digital signature


Bug#587373: [Build-common-hackers] Bug#587373: cdbs: python-distutils.mk: Installs scripts with a versioned shebang

2010-06-28 Thread Jonas Smedegaard

On Mon, Jun 28, 2010 at 01:07:15AM +0200, Stefano Rivera wrote:
Hi, as part of the Python 2.6 transition, I've been digging through the 
packages that depend on python2.5. An awful lot of them do so because 
they install scripts with a shebang of the form:


| #!/usr/bin/python2.5

dh works around this by building with the versioned python interpretors 
first, and then the default /usr/bin/python 
http://git.debian.org/?p=debhelper/debhelper.git;a=blob;f=Debian/Debhelper/Buildsystem/python_distutils.pm#l111


However distutils provides a way to force a particular shebang: 
--executable



Interesting!

Would you happen to know if that option is new or we can safely use this 
also for e.g. backports?


Would it perhaps be better to always pass this option, also for specific 
versions of Python?



Kind regards,

 - Jonas

--
 * Jonas Smedegaard - idealist  Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: Digital signature