mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
python/python3-meson-opt: README fixes.
Applying fixes for current even though they are not needed, but for consistency. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
100b61bcc5
commit
266e674a09
2 changed files with 6 additions and 3 deletions
|
@ -7,11 +7,12 @@ build definitions are written in a simple non-Turing complete DSL.
|
||||||
|
|
||||||
NOTE:
|
NOTE:
|
||||||
Install bin and docs to /opt/meson
|
Install bin and docs to /opt/meson
|
||||||
Installs module to /opt/python3.9/site-packages
|
Installs module to /opt/python$PYVER/site-packages
|
||||||
|
|
||||||
Add the following before the python3 build commands in your
|
Add the following before the python3 build commands in your
|
||||||
Slackbuild to use this version over the stock one in 15.0. My testing
|
Slackbuild to use this version over the stock one in 15.0. My testing
|
||||||
has shown the newer meson bin does not need to be added to PATH, but
|
has shown the newer meson bin does not need to be added to PATH, but
|
||||||
YMMV:
|
YMMV:
|
||||||
|
|
||||||
export PYTHONPATH=/opt/python3.9/site-packages/
|
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
|
||||||
|
export PYTHONPATH=/opt/python$PYVER/site-packages
|
||||||
|
|
|
@ -65,12 +65,14 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
|
||||||
|
|
||||||
|
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
|
||||||
|
|
||||||
python3 -m build --no-isolation
|
python3 -m build --no-isolation
|
||||||
python3 -m installer -d "$PKG" -p "opt/meson" dist/*.whl
|
python3 -m installer -d "$PKG" -p "opt/meson" dist/*.whl
|
||||||
|
|
||||||
if [ "$PKG/opt/" != "/opt/" ]; then
|
if [ "$PKG/opt/" != "/opt/" ]; then
|
||||||
mkdir -p $PKG/opt
|
mkdir -p $PKG/opt
|
||||||
mv $PKG/opt/meson/lib*/python3.9 $PKG/opt/
|
mv $PKG/opt/meson/lib*/python$PYVER $PKG/opt/
|
||||||
rmdir $PKG/opt/meson/lib*
|
rmdir $PKG/opt/meson/lib*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue