Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
c0dd02dc
Commit
c0dd02dc
authored
Dec 11, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent building on too old a PyPy; don't build on CPython if CFFI too old.
parent
845c39df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
.gitignore
.gitignore
+1
-0
setup.py
setup.py
+13
-6
No files found.
.gitignore
View file @
c0dd02dc
...
...
@@ -12,6 +12,7 @@ gevent/_corecffi.o
*.egg-info
Makefile.ext
MANIFEST
*_flymake.py
greentest/.coverage\.*
greentest/htmlcov
...
...
setup.py
View file @
c0dd02dc
...
...
@@ -359,20 +359,27 @@ else:
setup_kwds
=
{}
try
:
__import__
(
'cffi'
)
cffi
=
__import__
(
'cffi'
)
except
ImportError
:
setup_kwds
=
{}
else
:
_min_cffi_version
=
(
1
,
3
,
0
)
_cffi_version_is_supported
=
cffi
.
__version_info__
>=
_min_cffi_version
_kwds
=
{
'cffi_modules'
:
cffi_modules
}
# We already checked for PyPy on Windows above and excluded it
if
PYPY
:
if
not
_cffi_version_is_supported
:
raise
Exception
(
"PyPy 2.6.1 or higher is required"
)
setup_kwds
=
_kwds
elif
LIBEV_EMBED
and
(
not
WIN
or
CFFI_WIN_BUILD_ANYWAY
):
# If we're on CPython, we can only reliably build
# the CFFI module if we're embedding libev (in some cases
# we wind up embedding it anyway, which may not be what the
# distributor wanted).
setup_kwds
=
_kwds
if
not
_cffi_version_is_supported
:
print
(
"WARNING: CFFI version 1.3.0 is required to build CFFI backend"
,
file
=
sys
.
stderr
)
else
:
# If we're on CPython, we can only reliably build
# the CFFI module if we're embedding libev (in some cases
# we wind up embedding it anyway, which may not be what the
# distributor wanted).
setup_kwds
=
_kwds
# If we are running info / help commands, or we're being imported by
# tools like pyroma, we don't need to build anything
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment