Skip to content

Commit

Permalink
Universal binary for macOS Python 3.11 binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Géry Casiez committed Oct 20, 2024
1 parent b82722f commit 8b5ea2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bindings/Python/cython/libpointing.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cdef extern from "Python.h":

cdef void defaultCallback(void *context, cpointingdevice.inttime timestamp,
int dx, int dy,
int buttons):
int buttons) noexcept:
cdef PyGILState_STATE st
st = PyGILState_Ensure()

Expand All @@ -34,7 +34,7 @@ cdef void defaultCallback(void *context, cpointingdevice.inttime timestamp,

cdef void deviceUpdateCallback(void *context,
const cpointingdevicemanager.PointingDeviceDescriptor &desc,
bool wasAdded):
bool wasAdded) noexcept:
cdef PyGILState_STATE st
st = PyGILState_Ensure()

Expand Down
6 changes: 3 additions & 3 deletions bindings/Python/cython/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
language="c++",
libraries=['pointing'],
include_dirs=[libpointing],
library_dirs=["./",libpointing+"pointing"],
extra_compile_args=["-stdlib=libc++", "-mmacosx-version-min=10.10", "-std=c++17"],
extra_link_args=["-mmacosx-version-min=10.10", "-framework", "CoreGraphics"],
library_dirs=["./", libpointing+"pointing"],
extra_compile_args=["-stdlib=libc++", "-mmacosx-version-min=10.10", "-std=c++17", "-arch", "arm64", "-arch", "x86_64"],
extra_link_args=["-mmacosx-version-min=10.10", "-framework", "CoreGraphics", "-arch", "arm64", "-arch", "x86_64"],
)]
elif system == 'Linux':
ext_modules = [Extension(
Expand Down
2 changes: 1 addition & 1 deletion bindings/Python/cython/setupForPip.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='libpointing',
version='1.0.8.3',
version='1.0.8.4',
provides=['libpointing'],
python_requires="==3.11.*",
package_data={'': ['libpointing.cpython-311-darwin.so', 'libpointing.cpython-311-x86_64-linux-gnu.so', 'libpointing.cp311-win_amd64.pyd']},
Expand Down

0 comments on commit 8b5ea2e

Please sign in to comment.