changeset: 69187:bbfc65d05588 parent: 69184:6adbf5f3dafb parent: 69186:3d7c9b38fbfd user: Barry Warsaw date: Thu Apr 07 10:48:29 2011 -0400 files: setup.py description: 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). diff -r 6adbf5f3dafb -r bbfc65d05588 setup.py --- a/setup.py Thu Apr 07 11:50:25 2011 +0200 +++ b/setup.py Thu Apr 07 10:48:29 2011 -0400 @@ -373,6 +373,8 @@ def add_multiarch_paths(self): # Debian/Ubuntu multiarch support. # https://wiki.ubuntu.com/MultiarchSpec + if not find_executable('dpkg-architecture'): + return tmpfile = os.path.join(self.build_temp, 'multiarch') if not os.path.exists(self.build_temp): os.makedirs(self.build_temp)

AltStyle によって変換されたページ (->オリジナル) /