Skip to content

Commit

Permalink
Use build to create distributions (#2160)
Browse files Browse the repository at this point in the history
Instead of calling setup.py. This fixes the name of built distributions
to match pep625, i.e. elastic_apm instead of elastic-apm
  • Loading branch information
xrmx authored Nov 26, 2024
1 parent 43414ad commit 76b3143
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions dev-utils/make-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
# Make a Python APM agent distribution
#

echo "::group::Install wheel"
pip install --user wheel
echo "::group::Install build"
pip install --user build
echo "::endgroup::"

echo "::group::Building universal wheel"
python setup.py bdist_wheel
echo "::endgroup::"

echo "::group::Building source distribution"
python setup.py sdist
echo "::group::Building packages"
python -m build
echo "::endgroup::"

0 comments on commit 76b3143

Please sign in to comment.