Skip to content

Commit

Permalink
Merge pull request h5py#2499 from neutrinoceros/hotfix_ppc64
Browse files Browse the repository at this point in the history
BUG: hotfix portability for ppc64(le) archs
  • Loading branch information
takluyver authored Sep 18, 2024
2 parents 4aa1ffb + bcb4fa4 commit b506647
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions h5py/h5t.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ from .utils cimport emalloc, efree, require_tuple, convert_dims,\

# Python imports
import codecs
import os
import platform
import sys
from collections import namedtuple
import numpy as np
Expand All @@ -38,12 +38,9 @@ from ._objects import phil, with_phil

cfg = get_config()

if sys.platform.startswith("win"):
_IS_PPC64 = False
_IS_PPC64LE = False
else:
_IS_PPC64 = os.uname() == "ppc64"
_IS_PPC64LE = os.uname() == "ppc64le"
_UNAME_MACHINE = platform.uname()[4]
_IS_PPC64 = _UNAME_MACHINE == "ppc64"
_IS_PPC64LE = _UNAME_MACHINE == "ppc64le"

cdef char* H5PY_PYTHON_OPAQUE_TAG = "PYTHON:OBJECT"

Expand Down

0 comments on commit b506647

Please sign in to comment.