diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2011-08-02 17:34:38 +0200 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-08-13 08:36:44 -0600 |
commit | dba98cc143687bcb9ab25403b5d51fdefd582370 (patch) | |
tree | 89e6d1d6dbd153bd9f4e60d228accaf47e31c236 /numpy | |
parent | 57b56bc6409f30039e59d5476feb675d2c279564 (diff) | |
download | numpy-dba98cc143687bcb9ab25403b5d51fdefd582370.tar.gz |
BLD: fix build for py3k + pip. Closes #1857. Thanks to Erik Bray.
Also works inside a virtualenv.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/ccompiler.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index 14213dc4b..e3b88af08 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -58,7 +58,11 @@ def CCompiler_spawn(self, cmd, display=None): if s: if is_sequence(cmd): cmd = ' '.join(list(cmd)) - print(o) + try: + print(o) + except UnicodeError: + # When installing through pip, `o` can contain non-ascii chars + pass if re.search('Too many open files', o): msg = '\nTry rerunning setup command until build succeeds.' else: |