File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ test-buildpack: clean-test-buildpack
2222 $(BUILDPACK_DIR ) /bin/compile $(BUILD_DIR ) $(CACHE_DIR ) $(ENV_DIR )
2323 # Confirm staged dependencies are importable before checking the release metadata.
2424 cd $(BUILD_DIR ) && /bin/bash -lc ' source .profile.d/python.sh && $(PYTHON_BIN) -c "import fastapi; print(fastapi.__version__)"'
25- cd $( BUILD_DIR ) && $( BUILDPACK_DIR ) /bin/release
25+ $( BUILDPACK_DIR ) /bin/release $( BUILD_DIR )
2626
2727# Start the staged sample app locally using the dependencies prepared by `test-buildpack`.
2828start-local :
Original file line number Diff line number Diff line change 33
44set -euo pipefail
55
6+ BUILD_DIR=" ${1:? BUILD_DIR argument is required} "
7+ cd " $BUILD_DIR "
8+
69# Prefer the Python interpreter staged by `bin/compile`, but fall back to a
710# system interpreter so local development and unit tests can still run.
811if [ -x " .python/bin/python3" ]; then
Original file line number Diff line number Diff line change @@ -77,8 +77,7 @@ run_release() {
7777
7878 set +e
7979 (
80- cd " $app_dir "
81- PATH=" $FAKE_BIN_DIR :/usr/bin:/bin" REAL_PYTHON3=" $REAL_PYTHON3 " " $RELEASE_SCRIPT "
80+ PATH=" $FAKE_BIN_DIR :/usr/bin:/bin" REAL_PYTHON3=" $REAL_PYTHON3 " " $RELEASE_SCRIPT " " $app_dir "
8281 ) > " $output_file " 2>&1
8382 status=$?
8483 set -e
You can’t perform that action at this time.
0 commit comments