cpython: 3d7c9b38fbfd (original) (raw)
Mercurial > cpython
changeset 69186:3d7c9b38fbfd 3.2
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). [#11715]
Barry Warsaw barry@python.org | |
---|---|
date | Thu, 07 Apr 2011 10:45:07 -0400 |
parents | d29277949ad6(current diff)c8738114b962(diff) |
children | bbfc65d05588 225400cb6e84 |
files | setup.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-)[+] [-] setup.py 2 |
line wrap: on
line diff
--- a/setup.py +++ b/setup.py @@ -373,6 +373,8 @@ class PyBuildExt(build_ext): def add_multiarch_paths(self): # Debian/Ubuntu multiarch support. # https://wiki.ubuntu.com/MultiarchSpec[](#l1.6)
if not find_executable('dpkg-architecture'):[](#l1.7)
return[](#l1.8) tmpfile = os.path.join(self.build_temp, 'multiarch')[](#l1.9) if not os.path.exists(self.build_temp):[](#l1.10) os.makedirs(self.build_temp)[](#l1.11)