Skip to content

Commit 6c0bfae

Browse files
committed
wheels [pypi]
1 parent 5f83051 commit 6c0bfae

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/build_wheels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
if: matrix.os == 'macos-13' || matrix.os == 'macos-13-xlarge'
3838
env:
3939
MACOSX_DEPLOYMENT_TARGET: 13
40+
CIBW_BUILD: cp311-*
4041
CIBW_SKIP: pp*
4142
CIBW_BUILD_VERBOSITY: 1
4243
run: python -m cibuildwheel --output-dir wheelhouse

camb/_config.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,13 @@ def global_error_message(self):
3939
return bytearray(self._global_error_message).decode('ascii').strip()
4040

4141
def check_global_error(self, reference=''):
42-
code = self.global_error_flag
43-
if code:
44-
err = config.global_error_message()
42+
if code := self.global_error_flag:
4543
self.global_error_flag = 0
4644
if reference:
4745
reference = 'Error in Fortran called from %s:\n' % reference
4846
else:
4947
reference = ''
50-
if err:
48+
if err := config.global_error_message():
5149
raise CAMBError(reference + '%s' % err)
5250
else:
5351
raise CAMBError(reference + 'Error code: %s' % code)

fortran/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ COMMON_FFLAGS = -MMD -cpp -ffree-line-length-none -fmax-errors=4 -fopenmp
9696
FFLAGS = -O3 $(COMMON_FFLAGS)
9797
DEBUGFLAGS = -g -fbacktrace -ffpe-trap=invalid,overflow,zero -fbounds-check $(COMMON_FFLAGS)
9898
ifeq ($(shell uname -s),Darwin)
99-
SFFLAGS = -dynamiclib #-fpic
99+
SFFLAGS = -dynamiclib -static-libgfortran #-fpic
100100
else
101101
SFFLAGS = -shared -fpic
102102
endif

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def finalize_options(self):
256256

257257
def get_tag(self):
258258
_, _, plat = super().get_tag()
259-
if "osx_12" in plat or "osx_13" in plat:
259+
if "osx_12" in plat:
260260
return _, _, plat
261261
return "py3", "none", plat
262262

0 commit comments

Comments
 (0)