Skip to content

Commit 81e7d20

Browse files
committed
Remove cython gen files, generate in meson build
1 parent 7d73fc8 commit 81e7d20

File tree

13 files changed

+18
-124324
lines changed

13 files changed

+18
-124324
lines changed

.github/workflows/build-debian-multiarch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ env:
4040
INSTALL_CMD: |
4141
apt-get update --fix-missing
4242
apt-get upgrade -y
43-
apt-get install build-essential meson -y
43+
apt-get install build-essential meson cython3 -y
4444
apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev -y
4545
apt-get install libfreetype6-dev libportmidi-dev fontconfig -y
4646
apt-get install python3-dev python3-pip python3-wheel python3-sphinx -y

.github/workflows/build-on-msys2.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
mingw-w64-${{ matrix.env }}-python-pip
6262
mingw-w64-${{ matrix.env }}-python-sphinx
6363
mingw-w64-${{ matrix.env }}-meson-python
64+
mingw-w64-${{ matrix.env }}-cython
6465
6566
# mingw-w64-${{ matrix.env }}-SDL2
6667
# mingw-w64-${{ matrix.env }}-SDL2_image

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ dist
4444
*.so
4545
__pycache__
4646
_headers/*
47+
48+
# cython generated files
49+
src_c/_sdl2/*.c
50+
!/src_c/_sdl2/touch.c
51+
src_c/pypm.c

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project(
22
'pygame_ce',
3-
'c', # Project type. We only need a C compiler
3+
['c', 'cython'], # Project type. We need a C compiler and cython
44
version: run_command(
55
[find_program('python3', 'python'), 'buildconfig/get_version.py'],
66
check: true,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ classifiers = [
4848
hook-dirs = 'pygame.__pyinstaller:get_hook_dirs'
4949

5050
[build-system]
51-
requires = ["meson-python", "ninja"] # add cython here when needed
51+
requires = ["meson-python", "ninja", "cython"]
5252
build-backend = 'mesonpy'
5353

5454
[tool.meson-python.args]

0 commit comments

Comments
 (0)