diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 97bcf2f..dcab8c7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,7 +40,9 @@ jobs: - uses: actions/checkout@v4 - name: Build sdist - run: pipx run build --sdist + run: | + pipx install cython + pipx run build --sdist - uses: actions/upload-artifact@v4 with: diff --git a/build.py b/build.py index 9c6bb28..4261bba 100644 --- a/build.py +++ b/build.py @@ -5,15 +5,7 @@ from pathlib import Path from setuptools import Distribution - -try: - from Cython.Build import cythonize - from Cython.Distutils import build_ext -except ImportError: - print( - "Cython is required to build the Cython modules. " - "Please install Cython first by running: pip install Cython" - ) +from Cython.Build import cythonize # import Cython.Compiler.Options # Cython.Compiler.Options.cimport_from_pyx = True