[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-build-common] 50/50: use shlex.split()
From: |
gnunet |
Subject: |
[taler-build-common] 50/50: use shlex.split() |
Date: |
Sat, 02 Nov 2019 16:39:09 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository build-common.
commit 2536801927781ea38fefc3de924934e1c6a74d88
Author: ng0 <address@hidden>
AuthorDate: Tue Oct 29 22:12:30 2019 +0000
use shlex.split()
---
talerbuildconfig.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/talerbuildconfig.py b/talerbuildconfig.py
index cdc5774..da063b9 100644
--- a/talerbuildconfig.py
+++ b/talerbuildconfig.py
@@ -23,6 +23,7 @@ from abc import ABC
import argparse
import os
import sys
+import shlex
import logging
from distutils.spawn import find_executable
import subprocess
@@ -234,11 +235,11 @@ class PythonTool(Tool):
def check(self, buildconfig):
# No suffix. Would probably be cheaper to do this in
# the dict as well. We need at least version 3.7.
- if existence("python") and (subprocess.check_output(["python",
"--version"]).split()[1] >= b'3.7'):
+ if existence("python") and
(shlex.split(subprocess.getstatusoutput("python --version")[1])[1] >= '3.7'):
# python might not be python3. It might not even be
# python 3.x.
- python_version = subprocess.check_output(["python",
"--version"]).split()[1]
- if python_version >= b'3.7':
+ python_version = shlex.split(subprocess.getstatusoutput("python
--version")[1])[1]
+ if python_version >= '3.7':
buildconfig._set_tool("python", "python", python_version)
return True
else:
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [taler-build-common] 30/50: babel not bable, (continued)
- [taler-build-common] 30/50: babel not bable, gnunet, 2019/11/02
- [taler-build-common] 22/50: maybe fix, gnunet, 2019/11/02
- [taler-build-common] 31/50: remove Makefile, gnunet, 2019/11/02
- [taler-build-common] 26/50: Merge branch 'master' of git.taler.net:taler-build-scripts, gnunet, 2019/11/02
- [taler-build-common] 34/50: template should not be executable, gnunet, 2019/11/02
- [taler-build-common] 36/50: allow configure.py to be simpler, gnunet, 2019/11/02
- [taler-build-common] 29/50: drop old imports, gnunet, 2019/11/02
- [taler-build-common] 40/50: syntax fix, gnunet, 2019/11/02
- [taler-build-common] 44/50: version check python., gnunet, 2019/11/02
- [taler-build-common] 35/50: exec, gnunet, 2019/11/02
- [taler-build-common] 50/50: use shlex.split(),
gnunet <=
- [taler-build-common] 48/50: output pybabel and python versions. try to get minimal version. hack around browser not being found., gnunet, 2019/11/02
- [taler-build-common] 25/50: apply most feedback + lint, gnunet, 2019/11/02
- [taler-build-common] 28/50: check in code independent build system code., gnunet, 2019/11/02
- [taler-build-common] 41/50: start to make sh code reusable., gnunet, 2019/11/02
- [taler-build-common] 49/50: python is not always python3., gnunet, 2019/11/02
- [taler-build-common] 38/50: logging, gnunet, 2019/11/02
- [taler-build-common] 33/50: fix template, gnunet, 2019/11/02
- [taler-build-common] 42/50: Add PythonTool(). Contrary the code in sh/, it is limited to python3.7 - python4.0 right now., gnunet, 2019/11/02
- [taler-build-common] 37/50: link configure instead of copying, gnunet, 2019/11/02
- [taler-build-common] 27/50: refactor, rename switches, document more, add initial browser and pybabel detection., gnunet, 2019/11/02