File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22import os
3- from platform import architecture
3+ from platform import architecture , machine
44from setuptools import setup
55from setuptools .command .test import test as TestCommand
66import sys
77
88# environment variables for cross-platform package creation
99platform = os .environ .get ('PYSOUNDFILE_PLATFORM' , sys .platform )
10- architecture0 = os .environ .get ('PYSOUNDFILE_ARCHITECTURE' , architecture ()[0 ])
10+ architecture0 = os .environ .get ('PYSOUNDFILE_ARCHITECTURE' )
11+ if architecture0 is None :
12+ # follow the same decision tree as in soundfile.py after
13+ # _find_library('sndfile') fails:
14+ if sys .platform == 'win32' :
15+ architecture0 = architecture ()[0 ] # 64bit or 32bit
16+ else :
17+ architecture0 = machine () # x86_64 or arm64
1118
1219if platform == 'darwin' :
1320 libname = 'libsndfile_' + architecture0 + '.dylib'
You can’t perform that action at this time.
0 commit comments