Mercurial > vanilla
diff python/py-setuptools/py-setuptools.sh @ 1101:9e8ac37514e6
vanilla: fix many packages
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 16 Sep 2019 13:53:06 +0200 |
parents | ddab65a5b3f5 |
children | 297b5eef115e |
line wrap: on
line diff
--- a/python/py-setuptools/py-setuptools.sh Fri Sep 13 13:52:29 2019 +0200 +++ b/python/py-setuptools/py-setuptools.sh Mon Sep 16 13:53:06 2019 +0200 @@ -30,8 +30,21 @@ tar xvf v$PKGVERSION.tar.gz cd setuptools-$PKGVERSION + case $py in + "python") + directory="3.7" + ;; + "python2") + directory="2.7" + ;; + esac + $py bootstrap.py - $py setup.py install --root=$DESTDIR --prefix=/. + $py setup.py install \ + --root=$DESTDIR \ + --prefix=/ \ + --install-purelib=/lib/python$directory/site-packages \ + --install-platlib=/lib/python$directory/lib-dynload cd .. rm -rf setuptools-$PKGVERSION