File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 arch : ' x86'
1717 - os : windows-11-arm
1818 arch : ' arm64'
19+ - os : windows-11-arm
20+ arch : ' x64'
1921 runs-on : ${{ matrix.os }}
2022 steps :
2123 - name : Set up Python
2527 architecture : ${{ matrix.arch }}
2628 - name : Double-check Python version
2729 run : |
28- python --version
30+ python --version --version
2931 - name : Clone Git repository (with submodules)
3032 uses : actions/checkout@v7
3133 with :
3638 run : |
3739 python -m pip install .
3840 - name : Import module
41+ shell : bash
3942 run : |
4043 python -m sounddevice
4144 python -c "import sounddevice as sd; print(sd._libname)"
4548 python -c "import sounddevice as sd; assert not any(a['name'] == 'ASIO' for a in sd.query_hostapis())"
4649 - name : Import module (using the ASIO DLL)
4750 if : startsWith(matrix.os, 'windows')
51+ shell : bash
4852 env :
4953 SD_ENABLE_ASIO : 1
5054 run : |
Original file line number Diff line number Diff line change 11import os
22import platform
3+ import sysconfig
34from setuptools import setup
45
56MACOSX_VERSIONS = '.' .join ([
1112system = os .environ .get ('PYTHON_SOUNDDEVICE_PLATFORM' , platform .system ())
1213machine = platform .machine ().lower ()
1314architecture0 = os .environ .get ('PYTHON_SOUNDDEVICE_ARCHITECTURE' ,
14- 'arm64' if machine in ['arm64' , 'aarch64' ] else platform .architecture ()[0 ])
15+ 'arm64' if 'arm64' in sysconfig .get_platform () or 'aarch64' in sysconfig .get_platform ()
16+ else platform .architecture ()[0 ])
1517
1618if system == 'Darwin' :
1719 libname = 'libportaudio.dylib'
Original file line number Diff line number Diff line change 5555import os as _os
5656import platform as _platform
5757import sys as _sys
58+ import sysconfig as _sysconfig
5859from ctypes .util import find_library as _find_library
5960from _sounddevice import ffi as _ffi
6061
7576 if _platform .system () == 'Darwin' :
7677 _libname = 'libportaudio.dylib'
7778 elif _platform .system () == 'Windows' :
78- if _platform . machine (). lower () in ( 'arm64' , ' aarch64' ):
79+ if 'arm64' in _sysconfig . get_platform () or ' aarch64' in _sysconfig . get_platform ( ):
7980 _platform_suffix = 'arm64'
8081 else :
8182 _platform_suffix = _platform .architecture ()[0 ]
You can’t perform that action at this time.
0 commit comments