mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
python/traitlets: Update for 5.2.2
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
31d06fb012
commit
40583ae970
2 changed files with 25 additions and 6 deletions
|
@ -26,7 +26,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=traitlets
|
||||
VERSION=${VERSION:-5.1.1}
|
||||
VERSION=${VERSION:-5.2.2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -80,14 +80,33 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
python3 setup.py install --root=$PKG
|
||||
# Use this setup.py shim:
|
||||
cat << EOF > setup.py
|
||||
from distutils.core import setup
|
||||
import os
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
pjoin = os.path.join
|
||||
packages = []
|
||||
for d, _, _ in os.walk(pjoin(here, 'traitlets')):
|
||||
if os.path.exists(pjoin(d, '__init__.py')):
|
||||
packages.append(d[len(here)+1:].replace(os.path.sep, '.'))
|
||||
setup(name='${PRGNAM}',
|
||||
version='${VERSION}',
|
||||
packages=packages,
|
||||
package_data={'': ['*']},
|
||||
)
|
||||
EOF
|
||||
|
||||
# With the shim, it's a good idea to use "unshare -n" to prevent downloading
|
||||
# anything extra:
|
||||
unshare -n python3 setup.py install --root=$PKG || exit 1
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
CHANGES.txt CONTRIBUTING.md COPYING.md README.md docs/ \
|
||||
CHANGES.txt CONTRIBUTING.md COPYING.md README.md \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="traitlets"
|
||||
VERSION="5.1.1"
|
||||
VERSION="5.2.2"
|
||||
HOMEPAGE="https://jupyter.org/"
|
||||
DOWNLOAD="https://github.com/ipython/traitlets/archive/5.1.1/traitlets-5.1.1.tar.gz"
|
||||
MD5SUM="47ccdf0ac59b1818956bf8f6f6534aac"
|
||||
DOWNLOAD="https://github.com/ipython/traitlets/archive/5.2.2/traitlets-5.2.2.tar.gz"
|
||||
MD5SUM="720e22fd704d888eccbfd474f54a1401"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="decorator"
|
||||
|
|
Loading…
Reference in a new issue