Andy Kipp před 4 roky
rodič
revize
639884b8ae
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      python_appimage/commands/build/app.py

+ 2 - 1
python_appimage/commands/build/app.py

@@ -228,7 +228,8 @@ def execute(appdir, name=None, python_version=None, linux_tag=None,
 
 
         # Bundle the requirements
         # Bundle the requirements
         if requirements_list:
         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 = (
                 'DEPRECATION: Python 2.7 reached the end of its life',
                 'DEPRECATION: Python 2.7 reached the end of its life',