Skip to content

Commit 1c0d27c

Browse files
authored
Make build script more robust (#96)
No guarantee that `pip` alias is set up correctly. Rely on `python3 -m` command. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent bdd81df commit 1c0d27c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build_and_install_distro.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if [ "$current_dir" != "aws-otel-python-instrumentation" ]; then
1414
fi
1515

1616
# Setup - update dependencies and create/empty dist dir
17-
pip install --upgrade pip setuptools wheel packaging build
17+
python3 -m pip install --upgrade pip setuptools wheel packaging build
1818
mkdir -p dist
1919
rm -rf dist/aws_opentelemetry_distro*
2020

@@ -25,5 +25,5 @@ python3 -m build --outdir ../dist
2525
# Install distro
2626
cd ../dist
2727
DISTRO=(aws_opentelemetry_distro-*-py3-none-any.whl)
28-
pip install $DISTRO --force-reinstall
28+
python3 -m pip install $DISTRO --force-reinstall
2929
cd ..

0 commit comments

Comments
 (0)