diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2018-03-04 15:45:09 +0800 |
---|---|---|
committer | Russell Keith-Magee <russell@keith-magee.com> | 2018-03-04 15:45:09 +0800 |
commit | 13b3b3e9a1e920cf343db52b769624c241dbbe92 (patch) | |
tree | 73fa99602c810ada2a4dfb9e033c320b6621fc34 /numpy/lib/tests/test_function_base.py | |
parent | 2d44de214d63c5fc610392d1e18fa93615b12c1a (diff) | |
download | numpy-13b3b3e9a1e920cf343db52b769624c241dbbe92.tar.gz |
BLD: Add configuration to allow cross platform builds for iOS.
When building NumPy for iOS, you build on macOS, with compiler flags to target iOS or the iOS simulator. However, setup.py runs on macOS, so sys.platform == 'darwin', regardless of the platform being targetted.
distutils provides an environment variable - _PYTHON_HOST_PLATFORM - to indicate when you are building for a different platform. This patches uses that variable to identify cross-platform builds and disable macOS specific features.
The patch also renames an internal method in strfuncs to avoid a collision with a symbol in iOS's standard library, and includes math.h to avoid errors about undefined symbols.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions