wok-4.x rev 7468
python: clarify python version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 01 15:49:29 2010 +0100 (2010-12-01) |
parents | a238d58b4e7a |
children | 4387a98222dc |
files | python/receipt |
line diff
1.1 --- a/python/receipt Wed Dec 01 04:37:14 2010 +0000 1.2 +++ b/python/receipt Wed Dec 01 15:49:29 2010 +0100 1.3 @@ -26,19 +26,21 @@ 1.4 # Rules to gen a SliTaz package suitable for Tazpkg. 1.5 genpkg_rules() 1.6 { 1.7 - mkdir -p $fs/usr/include/${PACKAGE}${VERSION%.*} 1.8 + python_version=${VERSION:0:3} 1.9 + mkdir -p $fs/usr/include/${PACKAGE}$python_version 1.10 cp -a $_pkg/usr/bin $fs/usr 1.11 cp -a $_pkg/usr/lib $fs/usr 1.12 # needed for mericurial to work now 1.13 - cp -a $_pkg/usr/include/${PACKAGE}${VERSION%.*}/pyconfig.h $fs/usr/include/${PACKAGE}${VERSION%.*} 1.14 - find $fs/usr/lib/${PACKAGE}${VERSION%.*} -name "*.pyc" -delete 1.15 - find $fs/usr/lib/${PACKAGE}${VERSION%.*} -name "*.pyo" -delete 1.16 + cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \ 1.17 + $fs/usr/include/${PACKAGE}$python_version 1.18 + find $fs/usr/lib/${PACKAGE}$python_version -name "*.pyc" -delete 1.19 + find $fs/usr/lib/${PACKAGE}$python_version -name "*.pyo" -delete 1.20 rm -f $fs/usr/bin/*-config 1.21 strip -s $fs/usr/bin/* 2>/dev/null 1.22 strip -s $fs/usr/lib/*.so* 2>/dev/null 1.23 1.24 - # Python can be symlink to python${VERSION:0:3} ??? 1.25 + # Python can be symlink to python$python_version ??? 1.26 #cd $fs/usr/bin 1.27 - #rm python && ln -s python${VERSION:0:3} python 1.28 + #rm python && ln -s python$python_version python 1.29 } 1.30