From 7b9b4f2b7524d8d908795092befd9dd18613623d Mon Sep 17 00:00:00 2001 From: Vladimir Ivan Date: Tue, 19 Jul 2022 14:13:54 +0100 Subject: [PATCH] Pip in isolated environment --- python_appimage/commands/build/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python_appimage/commands/build/app.py b/python_appimage/commands/build/app.py index 16996ed..1c26951 100644 --- a/python_appimage/commands/build/app.py +++ b/python_appimage/commands/build/app.py @@ -264,17 +264,18 @@ def execute(appdir, name=None, python_version=None, linux_tag=None, _, name = requirement.split('+') module = importlib.util.find_spec(name).origin if module.endswith('.so'): + log('BUNDLE', f'{name} (local)') destination = f'AppDir/opt/python{python_version}/lib/python{python_version}/site-packages/' copy_file(module, destination) else: + log('BUNDLE', f'{name} (local)') destination = f'AppDir/opt/python{python_version}/lib/python{python_version}/site-packages/{name}/' source = os.path.dirname(module) copy_tree(source, destination) - log('BUNDLE', f'{name} (local)') continue else: log('BUNDLE', requirement) - system(('./AppDir/AppRun', '-m', 'pip', 'install', '-U', in_tree_build, + system(('./AppDir/AppRun', '-I', '-m', 'pip', 'install', '-U', in_tree_build, '--no-warn-script-location', requirement), exclude=(deprecation, ' Running command git clone'))