Skip to content

Commit

Permalink
Make build script more robust (#96)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thpierce authored Mar 5, 2024
1 parent bdd81df commit 1c0d27c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build_and_install_distro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ "$current_dir" != "aws-otel-python-instrumentation" ]; then
fi

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

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

0 comments on commit 1c0d27c

Please sign in to comment.