From fb6319bc1a542bd2323fbe187dea3dd8637af33f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20Sz=C5=B1cs?= Date: Tue, 30 Jul 2024 18:38:04 +0200 Subject: [PATCH] chore: install cython in the sdist job --- .github/workflows/deploy.yml | 4 +++- build.py | 10 +--------- 2 files changed, 4 insertions(+), 10 deletions(-) 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