Skip to content

Commit

Permalink
Merge pull request #21735 from hoodmane/main
Browse files Browse the repository at this point in the history
ENH: cross compilation: use sysconfig to determine if x86_64 linux
  • Loading branch information
seberg committed Jun 12, 2022
2 parents 7b94d26 + d669e7a commit 7d21a8d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions numpy/core/setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os
import sys
import sysconfig
import pickle
import copy
import warnings
import platform
import textwrap
import glob
from os.path import join
Expand Down Expand Up @@ -79,9 +79,8 @@ def can_link_svml():
"""
if NPY_DISABLE_SVML:
return False
machine = platform.machine()
system = platform.system()
return "x86_64" in machine and system == "Linux"
platform = sysconfig.get_platform()
return "x86_64" in platform and "linux" in platform

def check_svml_submodule(svmlpath):
if not os.path.exists(svmlpath + "/README.md"):
Expand Down

0 comments on commit 7d21a8d

Please sign in to comment.