diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2024-09-10 05:10:52 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-09-14 23:37:08 +0700 |
commit | e7cc4849d636159d63c40cc61ce016c266ab3d97 (patch) | |
tree | 1ec22c22f61af7d129976bbd0eda8471679d22d3 /python/python3-userpath/python3-userpath.SlackBuild | |
parent | f1672883c3be037f36aee9d9b3982b75e16660d9 (diff) |
python/python3-userpath: Fix for new hatchling.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-userpath/python3-userpath.SlackBuild')
-rw-r--r-- | python/python3-userpath/python3-userpath.SlackBuild | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/python3-userpath/python3-userpath.SlackBuild b/python/python3-userpath/python3-userpath.SlackBuild index a9f61e83cf..8c1a106121 100644 --- a/python/python3-userpath/python3-userpath.SlackBuild +++ b/python/python3-userpath/python3-userpath.SlackBuild @@ -81,6 +81,9 @@ 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 {} \; +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages + CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" python3 -m build --wheel --no-isolation python3 -m installer --destdir "$PKG" dist/*.whl |