Skip to content

Commit

Permalink
Change from 'python setup.py sdist' to 'python -m build . --sdist'
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Dec 8, 2023
1 parent 02fc261 commit f0213da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ jobs:
# ctest -V -R "^csharp.*"
- name: Standalone Python bindings build from source
run: |
(cd $GITHUB_WORKSPACE/superbuild/build/gdal/swig/python && python setup.py sdist)
(cd $GITHUB_WORKSPACE/superbuild/build/gdal/swig/python && python -m build . --sdist)
mv $GITHUB_WORKSPACE/superbuild/build/gdal/swig/python/dist/GDAL-*.tar.gz gdal-python.tar.gz
mv $GITHUB_WORKSPACE/superbuild/build/gdal/swig/python gdal-swig-python
python3 -m venv myvenv
Expand Down
2 changes: 1 addition & 1 deletion HOWTO-RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ the GDAL package by one of the current owners : HowardB/FrankW/EvenR)

b) cd $BUILD_DIR/swig/python

c) python3 setup.py sdist
c) python3 -m build . --sdist

d) Check the output:
twine check dist/GDAL-*.gz
Expand Down

0 comments on commit f0213da

Please sign in to comment.