diff options
author | Hood Chatham <roberthoodchatham@gmail.com> | 2022-06-11 12:19:42 -0700 |
---|---|---|
committer | Hood Chatham <roberthoodchatham@gmail.com> | 2022-06-11 12:19:46 -0700 |
commit | ded461bf6de57c29495572e3c8bae4efd615a035 (patch) | |
tree | ef14ffcfc113a201a3bf6acd28a3e590a921d3b6 /numpy/array_api/_indexing_functions.py | |
parent | 4cb688938be2ff20bf939c3917fde2f7634f0500 (diff) | |
download | numpy-ded461bf6de57c29495572e3c8bae4efd615a035.tar.gz |
ENH: Fix pointer size determination for cross build
Using `sys` to ask about the build Python is hostile to cross
building because it is very hard to replace the sys module with one
that gives info about the target system. On the other hand, the
sysconfig data can be replaced by setting _PYTHON_SYSCONFIGDATA_NAME.
So instead of using `sys.maxsize` to determine pointer size, use
`sysconfig.get_config_var("SIZEOF_VOID_P")`
Diffstat (limited to 'numpy/array_api/_indexing_functions.py')
0 files changed, 0 insertions, 0 deletions