Ticket #44766

Alternate Python executables

Eröffnet am: 2022-06-07 03:10 Letztes Update: 2022-10-26 10:54

Auswertung:
Verantwortlicher:
(Keine)
Typ:
Status:
Offen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
Keine

Details

Follow-up to #44735. Figure out whether there is a reasonable way to try different Python executables for use in environments/distros that offer backports of newer versions as e.g. python3.5. If there is, implement that way.

Primary obstacle is that this check probably has to happen in configure, so that the correct executable can be written into the Makefiles, but at the same time, configure must be able to pass without Python for the purposes of building from tarballs.

Ticket-Verlauf (3/5 Historien)

2022-06-07 03:10 Aktualisiert von: alienvalkyrie
  • New Ticket "Alternate Python executables" created
2022-06-23 04:26 Aktualisiert von: cazfi
Kommentar

Reply To alienvalkyrie

Primary obstacle is that this check probably has to happen in configure, so that the correct executable can be written into the Makefiles, but at the same time, configure must be able to pass without Python for the purposes of building from tarballs.

It would be a lot easier, yet already a big improvement for the user, if we just supported passing python to use as parameter (env variable). That would avoid the detection code in configure, that would need to know if it really should detect (and set) python to use, or not.

./configure PYTHON="/home/cazfi/bin/the-improved-cazfi-python-4.5"

2022-06-23 06:48 Aktualisiert von: alienvalkyrie
Kommentar

Reply To cazfi

It would be a lot easier, yet already a big improvement for the user, if we just supported passing python to use as parameter (env variable). That would avoid the detection code in configure, that would need to know if it really should detect (and set) python to use, or not.

Sounds reasonable. But. We should probably still check the version of the supplied Python executable, and that check would also have to happen in configure – which means we'd still have aforementioned problem of requiring Python when building from tarball.

What we'd want, ideally, is to

  • allow alternate Python executables (chosen at configure-time),
  • check during setup that our Python executable works / has the right version (now in configure instead of autogen.sh),
  • keep building from git the same (require appropriate Python or fail during setup, and not require additional configure options like PYTHON=python3), and
  • keep building from tarball the same (not require Python, and not require additional configure options like --without-python).

I don't think there's a way to do all of those things without checking at configure-time whether we're going to need Python (based on whether generated code is up to date), or having something special about the tarballs that makes --without-python implicit.

2022-07-15 17:00 Aktualisiert von: cazfi
Kommentar

Reply To alienvalkyrie

having something special about the tarballs that makes --without-python implicit.

Lack of ".git" ? Though it might break someone unpacking the tarball to their *own* repository (hmm... actually, I think Debian does just that for maintaining their packaging)

2022-10-26 10:54 Aktualisiert von: cazfi
Kommentar

This would be handy also for testing that the build works with different python versions. Just came to my mind as people are speaking of how "big" update just released python-3.11 is.

Dateianhangliste

Keine Anhänge

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden