diff options
author | Matti Picus <matti.picus@gmail.com> | 2021-04-03 06:25:04 +0000 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2021-04-03 06:25:04 +0000 |
commit | 59184b73350fc21353b4ce33ad5318108304158b (patch) | |
tree | 5d89fc8ef6ab12b4e924ebcffd511d0360d252ee | |
parent | revert test to fix it (diff) | |
download | pypy-59184b73350fc21353b4ce33ad5318108304158b.tar.gz pypy-59184b73350fc21353b4ce33ad5318108304158b.tar.bz2 pypy-59184b73350fc21353b4ce33ad5318108304158b.zip |
embed _gdbm and lzma on arm64
-rw-r--r-- | lib_pypy/pypy_tools/build_cffi_imports.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib_pypy/pypy_tools/build_cffi_imports.py b/lib_pypy/pypy_tools/build_cffi_imports.py index 6ce10ece78..ac2bff599e 100644 --- a/lib_pypy/pypy_tools/build_cffi_imports.py +++ b/lib_pypy/pypy_tools/build_cffi_imports.py @@ -1,6 +1,12 @@ from __future__ import print_function -import sys, shutil, os, tempfile, hashlib, collections +import collections +import hashlib +import os +import platform +import shutil +import sys import sysconfig +import tempfile from os.path import join try: @@ -62,9 +68,10 @@ cffi_dependencies = { ['make', 'install', 'DESTDIR={}/'.format(deps_destdir)], ]), } -if sys.platform == 'darwin': - cffi_dependencies['gdbm'] = ( - # this does not compile on the buildbot, linker is missing '_history_list' +if sys.platform == 'darwin' or platform.machine() == 'aarch64': + # TODO: use these on x86 after upgrading Docker images to manylinux2014 + cffi_dependencies['_gdbm'] = ( + # this does not compile on the x86 buildbot, linker is missing '_history_list' 'http://distfiles.macports.org/gdbm/gdbm-1.18.1.tar.gz', '86e613527e5dba544e73208f42b78b7c022d4fa5a6d5498bf18c8d6f745b91dc', [configure_args + ['--without-readline'], |