aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2024-04-04 08:16:02 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-05 15:18:20 +0700
commit7933d7c60b7444cbbd0214444169eff929abe124 (patch)
tree67784ddb1c3c677df3907bd5feeee2889d117ca0 /python
parent34bd13ef51c0f415f2ff7c4c13783250c5777958 (diff)
python/python3-virtualenv: Fix building on -current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/python3-virtualenv/python3-virtualenv.SlackBuild8
-rw-r--r--python/python3-virtualenv/python3-virtualenv.info2
2 files changed, 3 insertions, 7 deletions
diff --git a/python/python3-virtualenv/python3-virtualenv.SlackBuild b/python/python3-virtualenv/python3-virtualenv.SlackBuild
index 934296b61067..cec916c9ba94 100644
--- a/python/python3-virtualenv/python3-virtualenv.SlackBuild
+++ b/python/python3-virtualenv/python3-virtualenv.SlackBuild
@@ -77,16 +77,12 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl
-# Fix version importing when using setuptools_scm<7
-# Thanks to dofuuz
-# https://github.com/dofuuz/python-soxr/issues/21
-sed -i 's/version =/__version__ = &/' $PKG/usr/lib$LIBDIRSUFFIX/python3.9/site-packages/$SRCNAM/version.py
-sed -i 's/version_tuple/__&__ = &/' $PKG/usr/lib$LIBDIRSUFFIX/python3.9/site-packages/$SRCNAM/version.py
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/python/python3-virtualenv/python3-virtualenv.info b/python/python3-virtualenv/python3-virtualenv.info
index df8b3f613d5e..688d913051cd 100644
--- a/python/python3-virtualenv/python3-virtualenv.info
+++ b/python/python3-virtualenv/python3-virtualenv.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/pypa/virtualenv/archive/20.25.1/virtualenv-20.25.1.
MD5SUM="cfed91a0c468d50ffc3efeb51da3d0d5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3-distlib python3-filelock python3-platformdirs"
+REQUIRES="python3-setuptools-scm-opt python3-distlib python3-filelock python3-platformdirs"
MAINTAINER="Jeremy Hansen"
EMAIL="jebrhansen+SBo@gmail.com"