You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pip/readme.md
+32-16Lines changed: 32 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,15 @@ This requires `requirements-parser` which can be installed on your host with `pi
20
20
21
21
You can also list multiple packages in single command:
22
22
```
23
-
flatpak-pip-generator --runtime='org.freedesktop.Sdk//22.08' foo\>=1.0.0,\<2.0.0 bar
23
+
flatpak-pip-generator --runtime='org.freedesktop.Sdk//22.08' foo\>=1.0.0,\<2.0.0 bar
24
24
```
25
25
26
-
If your project contains a [requirements.txt file](https://pip.readthedocs.io/en/stable/user_guide/#requirements-files) with all the project dependencies, you can use
26
+
If your project contains a [requirements.txt file](https://pip.readthedocs.io/en/stable/user_guide/#requirements-files) with all the project dependencies, you can use
@@ -40,19 +40,35 @@ You can use that in your manifest like
40
40
41
41
## Options
42
42
43
-
*`--python2`: Build with Python 2. Note that you will have to build [the Python 2 shared-module](https://github.com/flathub/shared-modules/tree/master/python2.7) as it is not in any runtime.
44
-
*`--build-isolation`: Enable build isolation with pip (recommended but not always work).
45
-
*`--cleanup=(scripts|all)`: Add `cleanup` to the manifest. This is used when the packages installed are only used at build time.
46
-
*`--build-only`: Alias to `--cleanup=all`.
47
-
*`--requirements-file=`, `-r`: Reads the list of packages from `requirements.txt` file. Mutually exclusive with `--pyproject-file`.
48
-
*`--pyproject-file=`: Reads the list of packages from `pyproject.toml` file. Mutually exclusive with `--requirements-file` or `r`.
49
-
*`--ignore-pkg=`: Ignore a specific package name in a requirements-file, otherwise ignored.
50
-
*`--checker-data`: This adds `x-checker-data` to modules so you will be notified when new releases happen. See [flatpak-external-data-checker](https://github.com/flathub/flatpak-external-data-checker) for more details.
51
-
*`--runtime=`: Runs `pip` inside of a specific Flatpak runtime instead of on your host. Highly recommended for reproducability and portability. Examples would be `org.freedesktop.Sdk//22.08` or `org.gnome.Sdk/aarch64/43`.
52
-
*`--ignore-errors=`: Allow the generation of empty or otherwise broken files when downloading packages fails.
53
-
*`--ignore-installed=`: Comma-separated list of package names for which pip should ignore already installed packages. Useful when the package is installed in the SDK but not in the runtime.
Specify requirements.txt file. Cannot be used with pyproject file.
58
+
--pyproject-file PYPROJECT_FILE
59
+
Specify pyproject.toml file. Cannot be used with requirements file.
60
+
--build-only Clean up all files after build
61
+
--build-isolation Do not disable build isolation. Mostly useful on pip that does't support the feature.
62
+
--ignore-installed IGNORE_INSTALLED
63
+
Comma-separated list of package names for which pip should ignore already installed packages. Useful when the package is installed in the SDK but not in the runtime.
64
+
--checker-data Include x-checker-data in output for the "Flatpak External Data Checker"
65
+
--output, -o OUTPUT Specify output file name
66
+
--runtime RUNTIME Specify a flatpak to run pip inside of a sandbox, ensures python version compatibility. Format: $RUNTIME_ID//$RUNTIME_BRANCH
67
+
--yaml Use YAML as output format instead of JSON
68
+
--ignore-errors Ignore errors when downloading packages
69
+
--ignore-pkg [IGNORE_PKG ...]
70
+
Ignore packages when generating the manifest. Needs to be specified with version constraints if present (e.g. --ignore-pkg 'foo>=3.0.0' 'baz>=21.0').
0 commit comments