summaryrefslogtreecommitdiff
path: root/lang/python/README.md
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2020-06-30 04:41:15 +0800
committerJeffery To <jeffery.to@gmail.com>2020-06-30 15:43:01 +0800
commite0e2224f8a80dd6b93dd00bd1e4a89e5a649c461 (patch)
treec36edeeb713a87bad4e992fcb212a5eeec139f93 /lang/python/README.md
parent811ff39de5cc3763e4509f852b28a97e9b571a4d (diff)
python-packages: Disable parallel build when host pip is needed
This adds PKG_BUILD_PARALLEL:=0 to packages that depend on host Python packages (HOST_PYTHON3_PACKAGE_BUILD_DEPENDS), because installing packages with multiple concurrent pip processes can lead to errors or unexpected results[1]. This also: * Move HOST_PYTHON3_PACKAGE_BUILD_DEPENDS definitions to before python3-package.mk is included * Update Python folder readme to include PKG_BUILD_PARALLEL:=0 [1]: https://github.com/pypa/pip/issues/2361 Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/README.md')
-rw-r--r--lang/python/README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/python/README.md b/lang/python/README.md
index 4bceb978d..ac3bf51c7 100644
--- a/lang/python/README.md
+++ b/lang/python/README.md
@@ -332,8 +332,11 @@ These can be installed via pip and ideally they should only be installed like th
Which is why [for example] if you need python cffi on the host build, it's easier to just add it via:
```
+PKG_BUILD_PARALLEL:=0
HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="cffi==$(PKG_VERSION)"
```
[cffi is one of those packages that needs a host-side package installed].
This works reasonably well in the current OpenWrt build system, as binaries get built for this package and get installed in the staging-dir `$(STAGING_DIR)/usr/lib/pythonX.Y/site-packages`.
+
+`PKG_BUILD_PARALLEL:=0` is necessary because installing packages with multiple concurrent pip processes can lead to [errors or unexpected results](https://github.com/pypa/pip/issues/2361).