[pypy-commit] cffi default: Skip pkg-config if OSError EACCES is raised
Rob Young
noreply at buildbot.pypy.org
Tue Apr 28 14:27:39 CEST 2015
Author: Rob Young <rob.young at digital.cabinet-office.gov.uk>
Branch:
Changeset: r1873:e1d2dcf322f8
Date: 2015-04-28 12:57 +0100
http://bitbucket.org/cffi/cffi/changeset/e1d2dcf322f8/
Log: Skip pkg-config if OSError EACCES is raised
If one of the directories in the PATH is not executable by the
current user then EACCES will be raised.
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@
p = subprocess.Popen([pkg_config, option, 'libffi'],
stdout=subprocess.PIPE)
except OSError as e:
- if e.errno != errno.ENOENT:
+ if e.errno not in [errno.ENOENT, errno.EACCES]:
raise
else:
t = p.stdout.read().decode().strip()
More information about the pypy-commit
mailing list