[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-build-scripts] branch master updated: use shlex.split()
From: |
gnunet |
Subject: |
[taler-taler-build-scripts] branch master updated: use shlex.split() |
Date: |
Tue, 29 Oct 2019 23:13:07 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository taler-build-scripts.
The following commit(s) were added to refs/heads/master by this push:
new 2536801 use shlex.split()
2536801 is described below
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-taler-build-scripts] branch master updated: use shlex.split(),
gnunet <=