Skip to content

Commit

Permalink
chore: install cython in the sdist job
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Jul 30, 2024
1 parent 3deb7e5 commit fb6319b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 1 addition & 9 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb6319b

Please sign in to comment.