From 0ba0d96beb94851245c89a748e34f413429f049e Mon Sep 17 00:00:00 2001 From: Valentin Niess Date: Fri, 18 Feb 2022 22:43:36 +0100 Subject: [PATCH] Skip tk install for manylinux > 1 --- python_appimage/commands/build/manylinux.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/python_appimage/commands/build/manylinux.py b/python_appimage/commands/build/manylinux.py index 3e58854..cd2d48d 100644 --- a/python_appimage/commands/build/manylinux.py +++ b/python_appimage/commands/build/manylinux.py @@ -46,11 +46,17 @@ def execute(tag, abi, contained=False): copy_tree(dirname, 'python_appimage') argv = ' '.join(sys.argv[1:]) - script = ( - 'yum --disablerepo="*" --enablerepo=base install -q -y tk', + if tag.startswith("1_"): + # On manylinux1 tk is not installed + script = [ + 'yum --disablerepo="*" --enablerepo=base install -q -y tk'] + else: + # tk is already installed on other platforms + script = [] + script += [ python + ' -m python_appimage ' + argv + ' --contained', '' - ) + ] docker_run(image, script) appimage_name = _get_appimage_name(abi, tag)