Skip to content

Commit 2a7a29c

Browse files
committed
Minor fixes to enable compilation for the recent Python version
1 parent 3f5c52d commit 2a7a29c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/pypi_publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
python -m pip install --upgrade pip
9090
python -m pip install cibuildwheel
9191
python -m pip install packaging
92+
python -m pip install setuptools
9293
echo "CIBW_BEFORE_ALL=pip install cmake" >> $GITHUB_ENV
9394
PYTH_VER=${{ matrix.python-version }}
9495
PYTH_VER=${PYTH_VER//.}
@@ -108,6 +109,8 @@ jobs:
108109
set -vxeuo pipefail
109110
cd env/python
110111
python -VV
112+
python -m pip install packaging
113+
python -m pip install setuptools
111114
python setup.py bdist_wheel
112115
ls -la dist/*
113116
mkdir -p ../../dist

cpp/cmake/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ add_library(genesis OBJECT ${genesis_source_files})
7575
target_link_libraries(genesis genmath)
7676
target_include_directories(genesis PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../src/ext/genesis/genesis_july08/)
7777
target_compile_definitions(genesis PRIVATE ${SRW_DEFINITIONS})
78+
if(UNIX)
79+
target_compile_options(genesis PRIVATE -std=c99 -Wno-implicit-int)
80+
endif()
7881

7982
#genmath
8083
set(genmath_source_files

0 commit comments

Comments
 (0)