diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2024-04-04 08:16:02 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-04-05 15:18:20 +0700 |
commit | 7933d7c60b7444cbbd0214444169eff929abe124 (patch) | |
tree | 67784ddb1c3c677df3907bd5feeee2889d117ca0 /python/python3-virtualenv/python3-virtualenv.SlackBuild | |
parent | 34bd13ef51c0f415f2ff7c4c13783250c5777958 (diff) |
python/python3-virtualenv: Fix building on -current.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-virtualenv/python3-virtualenv.SlackBuild')
-rw-r--r-- | python/python3-virtualenv/python3-virtualenv.SlackBuild | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/python/python3-virtualenv/python3-virtualenv.SlackBuild b/python/python3-virtualenv/python3-virtualenv.SlackBuild index 934296b610..cec916c9ba 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 |