Skip to content

Commit 3f02bb0

Browse files
committed
Fix issue #149 with macOS build
1 parent 6b96e0f commit 3f02bb0

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ Write ``variable_update`` when writing the ``equation`` command to the devsim fi
1515

1616
Fix issue [#148](https://github.com/devsim/devsim/issues/148) segmentation fault in ``get_matrix_and_rhs``. Matrix and RHS now printed in ``testing/cap2.py``.
1717

18+
### macOS Build
19+
20+
Fix issue [#149](https://github.com/devsim/devsim/issues/149) fix issue with macOS build scripts.
21+
1822
## Version 2.8.3
1923

2024
### Linux support

dist/bdist_wheel/fix_macos_arch.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import wheel
2-
import wheel.bdist_wheel
32
import sys
43

4+
# get_platform issue
5+
# https://community.opalstack.com/d/1445-issue-installing-livekit/2
56
try:
6-
plat = wheel.bdist_wheel.get_platform('')
7+
from wheel.bdist_wheel import get_platform
8+
except ImportError:
9+
from wheel._bdist_wheel import get_platform
10+
11+
try:
12+
plat = get_platform('')
713
except TypeError:
814
#TypeError: get_platform() takes 0 positional arguments but 1 was given
9-
plat = wheel.bdist_wheel.get_platform()
15+
plat = get_platform()
1016
#
1117
#print(plat)
1218

0 commit comments

Comments
 (0)