チケット #44766

Alternate Python executables

登録: 2022-06-07 03:10 最終更新: 2024-10-20 11:18

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
1

詳細

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.

チケットの履歴 (9 件中 3 件表示)

2022-06-07 03:10 更新者: alienvalkyrie
  • 新しいチケット "Alternate Python executables" が作成されました
2022-06-23 04:26 更新者: cazfi
コメント

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 更新者: alienvalkyrie
コメント

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 更新者: cazfi
コメント

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 更新者: cazfi
コメント

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.

2024-10-18 23:09 更新者: cazfi
コメント

Maybe abandon the idea to work on this on autotools any more. For meson based build the feature seems easy to implement.

2024-10-18 23:14 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
2024-10-20 11:18 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする