Skip to content

Commit 67b4b76

Browse files
authored
Merge pull request #270 from mfem/fix-macos-install
Fix mac install errors
2 parents 8609c3e + cf2921d commit 67b4b76

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
@@ -34,12 +34,6 @@
3434
# except ImportError:
3535
from distutils.command.clean import clean as _clean
3636

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

@@ -71,8 +65,16 @@
7165

7266
osx_sysroot = ''
7367

68+
haveWheel = False
69+
7470
if platform == "linux" or platform == "linux2":
7571
dylibext = '.so'
72+
# Wheel build only works on linux because of chrpath command
73+
try:
74+
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
75+
haveWheel = True
76+
except ImportError:
77+
print("Skipping wheel build; wheel not installed.")
7678
elif platform == "darwin":
7779
# OS X
7880
dylibext = '.dylib'

0 commit comments

Comments
 (0)