Skip to content

Commit

Permalink
Add arm64 flags to setup.py
Browse files Browse the repository at this point in the history
The wheel building process should be informed of the arch we are
building for. If this operation works we should implement a mechanism to
tell setup.py when we are cross-compiling. Maybe via env variable.
  • Loading branch information
palonso committed Nov 5, 2023
1 parent 2afff08 commit 458eec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ def run(self):
if var_only_python in os.environ and os.environ[var_only_python]=='1':
print('Skipping building the core libessentia library (%s=1)' % var_only_python)
subprocess.run([PYTHON, 'waf', 'configure', '--only-python', '--static-dependencies',
'--prefix=tmp'], check=True)
'--prefix=tmp','--arch=arm64', '--no-msse'], check=True)
else:
subprocess.run([PYTHON, 'waf', 'configure', '--build-static', '--static-dependencies'
'--with-python --prefix=tmp'], check=True)
'--with-python --prefix=tmp', '--arch=arm64', '--no-msse'], check=True)
subprocess.run([PYTHON, 'waf'], check=True)
subprocess.run([PYTHON, 'waf', 'install'], check=True)

Expand Down

0 comments on commit 458eec2

Please sign in to comment.