Skip to content

Commit

Permalink
Merge pull request #54 from ifm/develop
Browse files Browse the repository at this point in the history
aarch64 support
  • Loading branch information
cwiede authored Feb 22, 2023
2 parents 6c3aa1c + 18c00e6 commit 582aaec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion nexxT/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def internal(self, message, *args, **kws):
p = os.environ.get("NEXXT_CEXT_PATH", None)
if p is None:
variant = os.environ.get("NEXXT_VARIANT", "release")
cplatform = "linux_x86_64" if platform.system() == "Linux" else "msvc_x86_64"
if platform.system() == "Linux":
cplatform = "linux_" + platform.machine()
else:
cplatform = "msvc_x86_64"
p = [p for p in [Path(__file__).parent / "binary" / cplatform / variant,
Path(__file__).parent / "binary" / cplatform / variant] if p.exists()]
if len(p) > 0:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def finalize_options(self):
def get_tag(self):
python, abi, plat = _bdist_wheel.get_tag(self)
# uncomment for non-python extensions
if platform.system() == "Linux":
if platform.system() == "Linux" and platform.machine() == "x86_64":
plat = "manylinux_2_28_x86_64"
abi = "abi3"
python = "cp37"
Expand Down Expand Up @@ -79,7 +79,7 @@ def is_pure(*args):
# return res

if platform.system() == "Linux":
p = "linux_x86_64"
p = "linux_" + platform.machine()
presuf = [("lib", ".so")]
else:
p = "msvc_x86_64"
Expand Down
4 changes: 2 additions & 2 deletions workspace/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ if platform.system() == "Linux":
with open("/etc/manylinux-release", "r") as f:
target_platform = f.read().strip()
else:
target_platform = "linux_x86_64"
target_platform = "linux_" + platform.machine()
env = Environment(target_platform=target_platform,
deploy_platform="linux_x86_64",
deploy_platform="linux_" + platform.machine(),
toolpath=["#/sconstools3"],
ENV = os.environ,
variant="unknown")
Expand Down

0 comments on commit 582aaec

Please sign in to comment.