wok diff python-turbogears/receipt @ rev 6592
remove hard coded python2.5
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 09 15:31:15 2010 +0200 (2010-10-09) |
parents | dda533844d18 |
children | d0fa681cee8d |
line diff
1.1 --- a/python-turbogears/receipt Sat Jun 13 12:07:45 2009 +0200 1.2 +++ b/python-turbogears/receipt Sat Oct 09 15:31:15 2010 +0200 1.3 @@ -17,6 +17,7 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 + PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.8 # Tgsetup dont build TurboGearsKid and friends if there are already 1.9 # installed, so remove python-turbogears before building. 1.10 if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then 1.11 @@ -25,7 +26,7 @@ 1.12 # Use tgsetup.py to bootstrap installation with all deps. It will 1.13 # build: TurbuGears, TurboCheetah, TurboJson and TurboKid. 1.14 cd $src/tools 1.15 - DESTDIR="../_pkg/usr/lib/python2.5/site-packages" 1.16 + DESTDIR="../_pkg/usr/lib/$PYTHON_LIB/site-packages" 1.17 mkdir -p $DESTDIR 1.18 PYTHONPATH=$DESTDIR python tgsetup.py -U -d $DESTDIR --prefix="../_pkg/usr" 1.19 } 1.20 @@ -33,6 +34,7 @@ 1.21 # Rules to gen a SliTaz package suitable for Tazpkg. 1.22 genpkg_rules() 1.23 { 1.24 + PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.25 cp -a $_pkg/usr $fs 1.26 - rm $fs/usr/lib/python2.5/site-packages/site.py* 1.27 + rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py* 1.28 }