Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88e1945

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).
1 parent 5ca305a commit 88e1945

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ def get_platform(self):
342342
def add_multiarch_paths(self):
343343
# Debian/Ubuntu multiarch support.
344344
# https://wiki.ubuntu.com/MultiarchSpec
345+
if not find_executable('dpkg-architecture'):
346+
return
345347
tmpfile = os.path.join(self.build_temp, 'multiarch')
346348
if not os.path.exists(self.build_temp):
347349
os.makedirs(self.build_temp)

0 commit comments

Comments
 (0)