python fixes
This commit is contained in:
1 parent
c8acb70aa8
commit
95849cc481
2 files changed
+12
No files matched your search
@@ -13,6 +13,9 @@ if [ "$1" != "" ] ; then
|
|||||||
rm -f /usr/bin/2to3
|
rm -f /usr/bin/2to3
|
||||||
rm -f /usr/bin/pip3
|
rm -f /usr/bin/pip3
|
||||||
rm -f /usr/bin/pip
|
rm -f /usr/bin/pip
|
||||||
|
rm -f /usr/lib64/libpython3.so
|
||||||
|
rm -f /usr/lib64/pkgconfig/python3.pc
|
||||||
|
rm -f /usr/lib64/pkgconfig/python3-embed.pc
|
||||||
fi
|
fi
|
||||||
ln -s pydoc$version /usr/bin/pydoc3
|
ln -s pydoc$version /usr/bin/pydoc3
|
||||||
ln -s python$version /usr/bin/python3
|
ln -s python$version /usr/bin/python3
|
||||||
@@ -22,6 +25,10 @@ if [ "$1" != "" ] ; then
|
|||||||
ln -s 2to3-$version /usr/bin/2to3
|
ln -s 2to3-$version /usr/bin/2to3
|
||||||
ln -s pip$version /usr/bin/pip3
|
ln -s pip$version /usr/bin/pip3
|
||||||
ln -s pip$version /usr/bin/pip
|
ln -s pip$version /usr/bin/pip
|
||||||
|
ln -s libpython$version.so /usr/lib64/libpython3.so
|
||||||
|
ln -s python-$version.pc /usr/lib64/pkgconfig/python3.pc
|
||||||
|
ln -s python-$version-embed.pc /usr/lib64/pkgconfig/python3-embed.pc
|
||||||
|
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -45,5 +45,10 @@ package(){
|
|||||||
for bin in pydoc3 idle3 python3 python3-config pip3 2to3; do
|
for bin in pydoc3 idle3 python3 python3-config pip3 2to3; do
|
||||||
rm -f ${DESTDIR}/usr/bin/$bin
|
rm -f ${DESTDIR}/usr/bin/$bin
|
||||||
done
|
done
|
||||||
|
rm -f ${DESTDIR}/usr/lib64/pkgconfig/python3.pc
|
||||||
|
rm -f ${DESTDIR}/usr/lib64/pkgconfig/python3-embed.pc
|
||||||
|
# remove symlink and move file
|
||||||
|
rm -f ${DESTDIR}/usr/lib64/libpython3.10.so
|
||||||
|
mv ${DESTDIR}/usr/lib64/libpython3.10.so ${DESTDIR}/usr/lib64/libpython3.so
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user