-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve build process by moving to script (#63)
In this commit, we are moving the build and install distro steps to a script to make it easier to run. As well, we are moving `set-up-contract-tests.sh` to the scripts folder for consistency. 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
Showing
6 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
# Check script is running in contract-tests | ||
current_path=`pwd` | ||
current_dir="${current_path##*/}" | ||
if [ "$current_dir" != "aws-otel-python-instrumentation" ]; then | ||
echo "Please run from aws-otel-python-instrumentation dir" | ||
exit | ||
fi | ||
|
||
# Setup - update dependencies and create/empty dist dir | ||
pip install --upgrade pip setuptools wheel packaging build | ||
mkdir dist | ||
rm -rf dist/aws_opentelemetry_distro* | ||
|
||
# Build distro | ||
cd aws-opentelemetry-distro | ||
python3 -m build --outdir ../dist | ||
|
||
# Install distro | ||
cd ../dist | ||
DISTRO=(aws_opentelemetry_distro-*-py3-none-any.whl) | ||
pip install $DISTRO --force-reinstall | ||
cd .. |
File renamed without changes.