Skip to content

Commit 76b3143

Browse files
authored
Use build to create distributions (#2160)
Instead of calling setup.py. This fixes the name of built distributions to match pep625, i.e. elastic_apm instead of elastic-apm
1 parent 43414ad commit 76b3143

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

dev-utils/make-packages.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@
33
# Make a Python APM agent distribution
44
#
55

6-
echo "::group::Install wheel"
7-
pip install --user wheel
6+
echo "::group::Install build"
7+
pip install --user build
88
echo "::endgroup::"
99

10-
echo "::group::Building universal wheel"
11-
python setup.py bdist_wheel
12-
echo "::endgroup::"
13-
14-
echo "::group::Building source distribution"
15-
python setup.py sdist
10+
echo "::group::Building packages"
11+
python -m build
1612
echo "::endgroup::"

0 commit comments

Comments
 (0)