From a3da10f9258fa65ba51adb8ee8ce21f6239e2478 Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Thu, 28 Sep 2023 14:02:08 -0400 Subject: [PATCH] try this --- .../classes/pipenv_app_bundle.bbclass | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/layers/meta-opentrons/classes/pipenv_app_bundle.bbclass b/layers/meta-opentrons/classes/pipenv_app_bundle.bbclass index a00b2059..00a09519 100644 --- a/layers/meta-opentrons/classes/pipenv_app_bundle.bbclass +++ b/layers/meta-opentrons/classes/pipenv_app_bundle.bbclass @@ -152,22 +152,43 @@ PIP_ARGS := "--no-compile \ -t ${PIPENV_APP_BUNDLE_SOURCE_VENV}" do_compile () { - ${PIP_ENVARGS} ${PYTHON} -m pip install \ + mkdir -p ${B}/pip-downloads + + bbnote "Downloading pypi packages" + + ${PIP_ENVARGS} ${PYTHON} -m pip download \ -r ${B}/pypi.txt \ ${PIP_ARGS} \ - --no-deps + --no-deps \ + --dest=${B}/pip-downloads/ \ + -vvv + + bbnote "Installing pypi packages" + + ${PIP_ENVARGS} ${PYTHON} -m pip install \ + --no-index --find-links=${B}/pip-downloads/ \ + -r ${B}/pypi.txt \ + -vvv + + bbnote "Building and installing local packages" ${PIP_ENVARGS} ${PYTHON} -m pip install \ -r ${B}/local.txt \ ${PIP_ARGS} \ --no-deps \ - --use-feature=in-tree-build + --use-feature=in-tree-build \ + -vvv + + bbnote "Building and installing true source packages" ${PIP_ENVARGS} ${PYTHON} -m pip install \ ${PIPENV_APP_BUNDLE_PROJECT_ROOT} \ --use-feature=in-tree-build \ --no-deps \ - ${PIP_ARGS} + ${PIP_ARGS} \ + -vvv + + bbnote "Done installing python packages" } do_compile[vardeps] += "PIPENV_APP_BUNDLE_EXTRA_PIP_ENVARGS"