diff options
author | Matthew Badin <mbadin@apple.com> | 2021-04-30 14:03:55 -0700 |
---|---|---|
committer | Matthew Badin <mbadin@apple.com> | 2021-04-30 14:03:55 -0700 |
commit | ee56322f91788c97d4a41fdf4ae66aa45310553c (patch) | |
tree | 54fa69ea8865c6d48818d147e976f44d60daaca3 /numpy/_build_utils/apple_accelerate.py | |
parent | e28da7a3d50862fa99b8b704d60fc6543b5af631 (diff) | |
download | numpy-ee56322f91788c97d4a41fdf4ae66aa45310553c.tar.gz |
BLD: Address lint issues and reviewer comments.
Diffstat (limited to 'numpy/_build_utils/apple_accelerate.py')
-rw-r--r-- | numpy/_build_utils/apple_accelerate.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/numpy/_build_utils/apple_accelerate.py b/numpy/_build_utils/apple_accelerate.py deleted file mode 100644 index 8ce54619e..000000000 --- a/numpy/_build_utils/apple_accelerate.py +++ /dev/null @@ -1,21 +0,0 @@ -import os -import sys -import re - -__all__ = ['uses_accelerate_framework'] - -def uses_accelerate_framework(info): - """ Returns True if Accelerate framework is used for BLAS/LAPACK """ - # If we're not building on Darwin (macOS), don't use Accelerate - if sys.platform != "darwin": - return False - # If we're building on macOS, but targeting a different platform, - # don't use Accelerate. - if os.getenv('_PYTHON_HOST_PLATFORM', None): - return False - r_accelerate = re.compile("Accelerate") - extra_link_args = info.get('extra_link_args', '') - for arg in extra_link_args: - if r_accelerate.search(arg): - return True - return False |