If you insist, you can create your own package that runs whatever magic you need as postinstall script and BuildRequire this package. What you seem to miss - this is again just a tool, and each package must be explicitly built to use alternatives. Of course update-alternatives is available. Update-alternatives is available in fedora You cannot “switch python to 3.10” globally, because this means - any Fedora tool that needs python 3.11 stops working. OBS starts Fedora Rawhide instance to build your package. Just need to get the build environment to switch python3 version globally during build. Is it possible to blacklist python3.11 from being installed No idea what has lead you to this question. If your software absolutely needs Python 3.10 (or any lower version) then you must build your software to explicitly use Python 3.10 and require python3.10 package. This package won’t work on any real system because on all real systems out there /usr/bin/python3 will be version 3.11 and presumably your software fails to work with this version. As far as I know RedHat traditionally used a lot Python-based tools which means default Python is pulled in.Īs you did not describe what you are trying to achieve, it is rather hard to give any advice.īut let’s assume you somehow managed to fake /usr/bin/python3 to be version 3.10 and built package for Fedora. While multiple Python versions are available in distribution, at any given point there is one version that is default system version, that provides /usr/bin/python3 link and that is implicit dependency of any other Python based tool built in this distribution. It most certainly would not be possible in openSUSE. If Fedora offers some settings to switch between Python versions, they can then be integrated in OBS.īut I doubt very much it is possible. It can do only what target distribution supports. OBS is just a tool to automate package building. This question should be directed to Fedora lists/forums, not here. Is it possible to blacklist python3.11 from being installed or perhaps set python3 to use 3.10? (from. Now I seem to get both 3.10 and 3.11 if I interpret the log correct.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |