Skip to content

Commit 9b5ac3e

Browse files
committed
Refinement by Stefan Krah (see issue 11715, msg133194) to exit early if the
dpkg-architecture command is not found on $PATH. This should fix the failures on FreeBSD and Solaris, which do not create the target file via I/O redirection if the command isn't found (unlike Linux and OS X which do).
2 parents 12338ab + 88e1945 commit 9b5ac3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ def get_platform(self):
373373
def add_multiarch_paths(self):
374374
# Debian/Ubuntu multiarch support.
375375
# https://wiki.ubuntu.com/MultiarchSpec
376+
if not find_executable('dpkg-architecture'):
377+
return
376378
tmpfile = os.path.join(self.build_temp, 'multiarch')
377379
if not os.path.exists(self.build_temp):
378380
os.makedirs(self.build_temp)

0 commit comments

Comments
 (0)