Skip to content

Commit 127ec4f

Browse files
authored
Merge pull request #276 from mfem/fix-macos-install
patch for wheel build causing install failures on mac
2 parents 6fe636d + cf2921d commit 127ec4f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

setup.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@
3535
# except ImportError:
3636
from distutils.command.clean import clean as _clean
3737

38-
try:
39-
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
40-
haveWheel = True
41-
except ImportError:
42-
haveWheel = False
43-
4438
# To use a consistent encoding
4539
# from codecs import open
4640

@@ -73,8 +67,16 @@
7367

7468
osx_sysroot = ''
7569

70+
haveWheel = False
71+
7672
if platform == "linux" or platform == "linux2":
7773
dylibext = '.so'
74+
# Wheel build only works on linux because of chrpath command
75+
try:
76+
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
77+
haveWheel = True
78+
except ImportError:
79+
print("Skipping wheel build; wheel not installed.")
7880
elif platform == "darwin":
7981
# OS X
8082
dylibext = '.dylib'

0 commit comments

Comments
 (0)