Kaynağa Gözat

Pip in isolated environment

Vladimir Ivan 3 yıl önce
ebeveyn
işleme
7b9b4f2b75
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      python_appimage/commands/build/app.py

+ 3 - 2
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'))