Open FlexW opened 4 years ago
This is because when pip installs build dependencies, it uses the --ignore-installed
option which causes it to ignore the system site packages. If you manually run the command reported in the error message but without that option on the command line, then it will work.
According to pip's commit message, this is to "improve [the] build environment [...] better isolation (ignore system site packages)".
I tried applying this patch:
diff --git a/pip/flatpak-pip-generator b/pip/flatpak-pip-generator
index 2a565a94365b..e9d13dcd7eea 100755
--- a/pip/flatpak-pip-generator
+++ b/pip/flatpak-pip-generator
@@ -297,8 +297,6 @@ for package in packages:
print('Warning: skipping invalid requirement specification {} because it is missing a name'.format(package.line), file=sys.stderr)
print('Append #egg=<pkgname> to the end of the requirement line to fix', file=sys.stderr)
continue
- elif package.name in system_packages:
- continue
if len(package.extras) > 0:
extras = '[' + ','.join(extra for extra in package.extras) + ']'
But unfortunately it still didn't solve the problem.
If I generate the json file for SQLAlchemy with
./flatpak-pip-generator SQLAlchemy
I get the following file:However if I include this file in my manifest, I get the following error when building:
I use org.gnome.Platform with version 3.32 as runtime and if I inspect the runtime with
flatpak run org.gnome.platform//3.32
, I can see that setuptools 40.8.0 are already installed.