|
|
f73de9 |
From 05650624fe2524ecb1bdbbd4facc5d988275e542 Mon Sep 17 00:00:00 2001
|
|
|
f73de9 |
From: Dan Callaghan <dcallagh@redhat.com>
|
|
|
f73de9 |
Date: Wed, 7 Jun 2017 13:55:53 +1000
|
|
|
f73de9 |
Subject: [PATCH] always obey GEVENT_NO_CFFI_BUILD
|
|
|
f73de9 |
|
|
|
f73de9 |
If libev is not embedded, we still want to set GEVENT_NO_CFFI_BUILD=1 to
|
|
|
f73de9 |
prevent setup.py from trying to configure libev, regardless whether cffi
|
|
|
f73de9 |
modules will actually be built or not.
|
|
|
f73de9 |
---
|
|
|
f73de9 |
setup.py | 11 ++++++-----
|
|
|
f73de9 |
1 file changed, 6 insertions(+), 5 deletions(-)
|
|
|
f73de9 |
|
|
|
f73de9 |
diff --git a/setup.py b/setup.py
|
|
|
f73de9 |
index 9c229ad..ea4dcaf 100755
|
|
|
f73de9 |
--- a/setup.py
|
|
|
f73de9 |
+++ b/setup.py
|
|
|
f73de9 |
@@ -90,16 +90,17 @@
|
|
|
f73de9 |
except ImportError:
|
|
|
f73de9 |
pass
|
|
|
f73de9 |
else:
|
|
|
f73de9 |
- if IGNORE_CFFI and not PYPY:
|
|
|
f73de9 |
- # Allow distributors to turn off CFFI builds
|
|
|
f73de9 |
- # even if it's available, because CFFI always embeds
|
|
|
f73de9 |
- # our copy of libev and they may not want that.
|
|
|
f73de9 |
- del cffi_modules[:]
|
|
|
f73de9 |
# Note that we don't add cffi to install_requires, it's
|
|
|
f73de9 |
# optional. We tend to build and distribute wheels with the CFFI
|
|
|
f73de9 |
# modules built and they can be imported if CFFI is installed.
|
|
|
f73de9 |
# install_requires.append('cffi >= 1.3.0')
|
|
|
f73de9 |
+ pass
|
|
|
f73de9 |
|
|
|
f73de9 |
+if IGNORE_CFFI and not PYPY:
|
|
|
f73de9 |
+ # Allow distributors to turn off CFFI builds
|
|
|
f73de9 |
+ # even if it's available, because CFFI always embeds
|
|
|
f73de9 |
+ # our copy of libev and they may not want that.
|
|
|
f73de9 |
+ del cffi_modules[:]
|
|
|
f73de9 |
|
|
|
f73de9 |
# If we are running info / help commands, or we're being imported by
|
|
|
f73de9 |
# tools like pyroma, we don't need to build anything
|
|
|
f73de9 |
--
|
|
|
f73de9 |
2.9.4
|
|
|
f73de9 |
|