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
72164e50
Commit
72164e50
authored
Jan 27, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add environment var to skip building libuv backend; use it on manylinux
parent
20c10ca6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
_setuputils.py
_setuputils.py
+4
-1
scripts/releases/make-manylinux
scripts/releases/make-manylinux
+1
-1
setup.py
setup.py
+5
-2
No files found.
_setuputils.py
View file @
72164e50
...
...
@@ -20,11 +20,13 @@ from setuptools.command.build_ext import build_ext
PYPY
=
hasattr
(
sys
,
'pypy_version_info'
)
WIN
=
sys
.
platform
.
startswith
(
'win'
)
CFFI_WIN_BUILD_ANYWAY
=
os
.
environ
.
get
(
"PYPY_WIN_BUILD_ANYWAY"
)
RUNNING_ON_TRAVIS
=
os
.
environ
.
get
(
'TRAVIS'
)
RUNNING_ON_APPVEYOR
=
os
.
environ
.
get
(
'APPVEYOR'
)
RUNNING_ON_CI
=
RUNNING_ON_TRAVIS
or
RUNNING_ON_APPVEYOR
LIBRARIES
=
[]
DEFINE_MACROS
=
[]
...
...
@@ -82,6 +84,7 @@ def _parse_environ(key):
'Please set it to 1, 0 or an empty string'
%
(
key
,
value
))
IGNORE_CFFI
=
_parse_environ
(
"GEVENT_NO_CFFI_BUILD"
)
SKIP_LIBUV
=
_parse_environ
(
'GEVENT_NO_LIBUV_BUILD'
)
def
_get_config_value
(
key
,
defkey
,
path
=
None
):
"""
...
...
scripts/releases/make-manylinux
View file @
72164e50
...
...
@@ -14,7 +14,7 @@ if [ -d /gevent -a -d /opt/python ]; then
rm
-rf
dist build
*
.egg-info
make clean
$variant
/bin/pip
install
-U
cython cffi setuptools greenlet wheel
PATH
=
$variant
/bin:
$PATH
$variant
/bin/python setup.py bdist_wheel
GEVENT_NO_LIBUV_BUILD
=
1
PATH
=
$variant
/bin:
$PATH
$variant
/bin/python setup.py bdist_wheel
auditwheel repair dist/
*
.whl
done
rm
-rf
dist build
*
.egg-info
...
...
setup.py
View file @
72164e50
...
...
@@ -17,6 +17,7 @@ from _setuputils import read_version
from
_setuputils
import
system
from
_setuputils
import
PYPY
,
WIN
from
_setuputils
import
IGNORE_CFFI
from
_setuputils
import
SKIP_LIBUV
from
_setuputils
import
ConfiguringBuildExt
from
_setuputils
import
BuildFailed
from
_setuputils
import
cythonize1
...
...
@@ -80,8 +81,10 @@ if not WIN:
LIBEV_CFFI_MODULE
)
cffi_modules
.
append
(
LIBUV_CFFI_MODULE
)
if
not
SKIP_LIBUV
:
# libuv can't be built on manylinux because it needs glibc >= 2.12
# but manylinux has only 2.5, so we set SKIP_LIBUV in the script make-manylinux
cffi_modules
.
append
(
LIBUV_CFFI_MODULE
)
if
PYPY
:
install_requires
=
[]
...
...
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