Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 39b0803

Browse files
committed
Support build under osx
1 parent 3246392 commit 39b0803

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

.github/workflows/cd.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
shell: bash
2929
run: |
3030
source ./.github/workflows/install-conda.sh
31-
python -m pip install --upgrade pip setuptools wheel coverage;
3231
3332
- name: Deploy packages
3433
if: startsWith(github.ref, 'refs/tags/') && matrix.no-deploy != '1'

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
shell: bash
2424
run: |
2525
source ./.github/workflows/install-conda.sh
26-
python -m pip install --upgrade pip setuptools wheel coverage;
2726
2827
- name: Build extensions
2928
shell: bash
3029
run: |
3130
source ./.github/workflows/reload-env.sh
31+
if [ $UNAME == "darwin" ]; then export CC="gcc-10"; fi
3232
python setup.py build_ext -i
3333
3434
- name: Test with unittest

.github/workflows/upload-packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ else
3030
conda activate wheel
3131

3232
pip install -r requirements-wheel.txt
33-
pip wheel --no-deps .
33+
CFLAGS=-Wno-error pip wheel --no-deps .
3434

3535
conda activate test
3636

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ test.conf
3737
*.iml
3838

3939
# Generated files
40-
clinic/*.h
40+
**/clinic/*.h

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
define_macros=[
2222
("HAVE_SHM_OPEN", "1"),
2323
("HAVE_SHM_UNLINK", "1"),
24-
("HAVE_SHM_MMAN_H", 1),
24+
("HAVE_SHM_MMAN_H", "1"),
2525
],
2626
libraries=["rt"] if sys.platform == 'linux' else [],
2727
sources=["shared_memory/posixshmem.c"],

0 commit comments

Comments
 (0)