Author: Rob Young <[email protected]>
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()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to