diff --git a/.github/workflows/build-python-package.yml b/.github/workflows/build-python-package.yml index d7d8ac94a3..05dd0df6e6 100644 --- a/.github/workflows/build-python-package.yml +++ b/.github/workflows/build-python-package.yml @@ -75,7 +75,7 @@ jobs: name: Upload to PyPI needs: [build_wheels, build_sdist] runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' && github.event_name == 'push' + # if: github.ref == 'refs/heads/master' && github.event_name == 'push' steps: - uses: actions/checkout@v2 @@ -99,4 +99,5 @@ jobs: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.pypi_password }} run: | + pip install setuptools (cd ./src/runtime/python && curl -I --fail https://pypi.org/project/$(python setup.py --name)/$(python setup.py --version)/) || twine upload dist/* diff --git a/src/runtime/python/setup.py b/src/runtime/python/setup.py index fdc2fe8c5a..52078649d6 100644 --- a/src/runtime/python/setup.py +++ b/src/runtime/python/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup, Extension +from setuptools import setup, Extension import os includes = os.getenv('EXTRA_INCLUDE_DIRS','').split(':')