[Freeciv-tickets] [freeciv] #44766: Alternate Python executables

アーカイブの一覧に戻る
OSDN Ticket System norep****@osdn*****
Thu Jun 23 06:48:47 JST 2022


#44766: Alternate Python executables

  Open Date: 2022-06-06 20:10
Last Update: 2022-06-22 23:48

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/44766
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44766

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-06-22 23:48 Updated by: alienvalkyrie

Comment:

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.

---------------------------------------------------------------------
Ticket Status:

      Reporter: alienvalkyrie
         Owner: (None)
          Type: Patches
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: Bootstrap
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket 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 information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/44766
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44766



More information about the Freeciv-tickets mailing list
アーカイブの一覧に戻る