From 639884b8ae438ad47533c561e32c71b070292a0a Mon Sep 17 00:00:00 2001 From: Andy Kipp Date: Mon, 3 May 2021 11:42:03 +0300 Subject: [PATCH] Check pip version --- python_appimage/commands/build/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_appimage/commands/build/app.py b/python_appimage/commands/build/app.py index 1fc487d..4e5598c 100644 --- a/python_appimage/commands/build/app.py +++ b/python_appimage/commands/build/app.py @@ -228,7 +228,8 @@ def execute(appdir, name=None, python_version=None, linux_tag=None, # Bundle the requirements if requirements_list: - in_tree_build = '' if version <= '3.5' else '--use-feature=in-tree-build' + pip_version = system(('./AppDir/AppRun','-m', 'pip','--version')).split(' ')[1] + in_tree_build = '' if pip_version <= '21' else '--use-feature=in-tree-build' deprecation = ( 'DEPRECATION: Python 2.7 reached the end of its life',