Skip to content

Commit

Permalink
lets try no build isolation for pypi packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Sep 29, 2023
1 parent e275d8e commit 149bcf7
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions layers/meta-opentrons/classes/pipenv_app_bundle.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -149,39 +149,42 @@ PIP_ARGS := "--no-compile \
--no-binary :all: \
--progress-bar off \
--force-reinstall \
--no-deps \
-t ${PIPENV_APP_BUNDLE_SOURCE_VENV}"

do_compile () {
mkdir -p ${B}/pip-downloads
mkdir -p ${B}/pip-buildenv

bbnote "Installing pypi packages"

${PIP_ENVARGS} ${PYTHON} -m pip install \
--no-use-pep517 \
${PYTHON} -m pip install \
-t ${B}/pip-buildenv \
hatchling flit flit-core setuptools setuptools-scm[toml] \


${PIP_ENVARGS} PYTHONPATH=${B}/pip-buildenv:${PYTHONPATH} ${PYTHON} -m pip install \
${PIP_ARGS} \
--no-build-isolation \
-r ${B}/pypi.txt \
--no-deps \
-vvv


bbnote "Building and installing local packages"

${PIP_ENVARGS} ${PYTHON} -m pip install \
-r ${B}/local.txt \
--no-use-pep517 \
${PIP_ARGS} \
--no-deps \
--use-feature=in-tree-build \
-vvv


bbnote "Building and installing true source packages"

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


bbnote "Done installing python packages"
}
Expand Down

0 comments on commit 149bcf7

Please sign in to comment.