wok diff python-couchdbkit/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 7f316625be78
children d0fa681cee8d
line diff
     1.1 --- a/python-couchdbkit/receipt	Wed Dec 30 14:26:07 2009 +0000
     1.2 +++ b/python-couchdbkit/receipt	Sat Oct 09 15:31:15 2010 +0200
     1.3 @@ -23,13 +23,14 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 +	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     1.8  	_pkg="$SOURCE/_pkg"
     1.9  	for file in `find $_pkg | grep 'pyc$'`; do
    1.10  		rm $file
    1.11  	done
    1.12  	mkdir -p $fs/usr
    1.13 -	rm -f $_pkg/usr/lib/python2.5/site-packages/tests/*
    1.14 -	rmdir $_pkg/usr/lib/python2.5/site-packages/tests
    1.15 +	rm -f $_pkg/usr/lib/$PYTHON_LIB/site-packages/tests/*
    1.16 +	rmdir $_pkg/usr/lib/$PYTHON_LIB/site-packages/tests
    1.17  	cp -a $_pkg/usr $fs
    1.18  }
    1.19