Skip to content

Commit

Permalink
here is a magic thing
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Sep 28, 2023
1 parent da2f3b5 commit e275d8e
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions layers/meta-opentrons/classes/pipenv_app_bundle.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -154,26 +154,10 @@ PIP_ARGS := "--no-compile \
do_compile () {
mkdir -p ${B}/pip-downloads

bbnote "Installing common build deps ahead of time"

${PYTHON} -m pip download \
--dest=${B}/pip-downloads \
-- \
flit flit-core hatchling setuptools setuptools_scm[toml]

bbnote "Downloading pypi packages"

${PIP_ENVARGS} ${PYTHON} -m pip download \
-r ${B}/pypi.txt \
--no-deps \
--no-binary :all: \
--dest=${B}/pip-downloads/ \
-vvv

bbnote "Installing pypi packages"

${PIP_ENVARGS} ${PYTHON} -m pip install \
--no-index --find-links=${B}/pip-downloads/ \
--no-use-pep517 \
${PIP_ARGS} \
-r ${B}/pypi.txt \
--no-deps \
Expand All @@ -183,6 +167,7 @@ do_compile () {

${PIP_ENVARGS} ${PYTHON} -m pip install \
-r ${B}/local.txt \
--no-use-pep517 \
${PIP_ARGS} \
--no-deps \
--use-feature=in-tree-build \
Expand All @@ -192,6 +177,7 @@ do_compile () {

${PIP_ENVARGS} ${PYTHON} -m pip install \
${PIPENV_APP_BUNDLE_PROJECT_ROOT} \
--no-use-pep517 \
--use-feature=in-tree-build \
--no-deps \
${PIP_ARGS} \
Expand Down

0 comments on commit e275d8e

Please sign in to comment.