From 1a02267f2ec0d545434ca27f1d5120898879bd2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 4 Nov 2023 14:05:12 +0100 Subject: [PATCH] Allow to freeze tryton on OS without python Use python version defined in the setup.py shebang instead of the generic python. (grafted from df77918547985584c40d16939e1029eaa506a5f2) --HG-- branch : 7.0 --- tryton/setup-freeze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/setup-freeze.py b/tryton/setup-freeze.py index 6e721154a1..326476160c 100755 --- a/tryton/setup-freeze.py +++ b/tryton/setup-freeze.py @@ -119,7 +119,7 @@ if os.path.exists(ssl_paths.openssl_capath): (ssl_paths.openssl_capath, os.path.join('etc', 'ssl', 'certs'))) version = Popen( - 'python setup.py --version', stdout=PIPE, shell=True, encoding='utf-8' + './setup.py --version', stdout=PIPE, shell=True, encoding='utf-8' ).stdout.read() version = version.strip()