Splux Linux

source-based Linux using SPS

sps-extra · log · files · refs · tags · releases · people · languages · GitHub · file

python/python-ghp-import/recipe


Shell

972 bytes at e2d5247 · GitHub

name        python-ghp-import
version     2.1.0
release     1
arch        any
description python-ghp-import: Copy your docs directly to the gh-pages branch

source      https://files.pythonhosted.org/packages/d9/29/d40217cbe2f6b1359e00c6c307bb3fc876ba74068cbab3dde77f03ca0dc4/ghp-import-${version}.tar.gz
hash        sha256:9c535c4c61193c2df8871222567d7fd7e5014d835f97dc7b7439069e2413d343

depend      filesystem
depend      python
depend      python-dateutil
builddep    python-setuptools

install     python3 -m pip install --no-deps --no-build-isolation --no-compile --root="$PKG" --prefix=/usr .
install     pyver=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])'); \
            if [ -d "$PKG/usr/lib/python$pyver" ]; then \
            mkdir -p "$PKG/usr/lib64"; \
            cp -a "$PKG/usr/lib/python$pyver/." "$PKG/usr/lib64/python$pyver/"; \
            rm -rf "$PKG/usr/lib/python$pyver"; \
            rmdir "$PKG/usr/lib" 2>/dev/null || :; fi