mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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).
This commit is contained in:
commit
9b5ac3efa6
1 changed files with 2 additions and 0 deletions
2
setup.py
2
setup.py
|
@ -373,6 +373,8 @@ class PyBuildExt(build_ext):
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue