remove /usr/bin/python3.8 to avoid confusing crappy build systems like cmake which look for python3.9, 3.8 etc. in the PATH and use the highest found version

This commit is contained in:
Mikhail Novosyolov 2020-06-30 21:59:01 +03:00
parent 301d2a8488
commit 651c841286

View file

@ -54,7 +54,7 @@
Summary: An interpreted, interactive object-oriented programming language
Name: %{py3_name}
Version: 3.8.2
Release: 5
Release: 6
License: Modified CNRI Open Source License
Group: Development/Python
@ -338,12 +338,6 @@ echo 'install_dir='"${RPM_BUILD_ROOT}/usr/bin" >>setup.cfg
mkdir -p %{buildroot}%{_mandir}
%makeinstall_std LN="ln -sf"
# overwrite the copied binary with a link
pushd %{buildroot}%{_bindir}
#ln -sf python%{dirver}m python%{dirver}
ln -sf python%{dirver} python%{familyver}
popd
(cd %{buildroot}%{_libdir}; ln -sf `ls libpython%{lib_major}*.so.*` libpython%{lib_major}.so)
# install pynche as pynche3
cat << EOF > %{buildroot}%{_bindir}/pynche3
@ -421,8 +415,6 @@ mv %{buildroot}%{_bindir}/pynche3 \
# That is why we have to relocate python3.8 out of $PATH
mkdir -p %{buildroot}%{_libexecdir}
mv %{buildroot}%{_bindir}/python3.8 %{buildroot}%{_libexecdir}/python3.8
# Temporary compat symlink untill all packages are fixed
( cd %{buildroot}%{_bindir} ; ln -s ../libexec/python3.8 python3.8 )
# Remove shebang lines from .py files that aren't executable, and
# remove executability from .py files that don't have a shebang line: