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
d5268d5b
Commit
d5268d5b
authored
Dec 03, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable c-ares when building on arm github actions.
It's very slow, and we don't test it under manylinux anyway.
parent
587d8416
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
10 deletions
+24
-10
.github/workflows/ci.yml
.github/workflows/ci.yml
+3
-1
_setuputils.py
_setuputils.py
+5
-4
scripts/releases/make-manylinux
scripts/releases/make-manylinux
+11
-5
setup.py
setup.py
+5
-0
No files found.
.github/workflows/ci.yml
View file @
d5268d5b
...
...
@@ -114,10 +114,12 @@ jobs:
docker run --rm --privileged hypriot/qemu-register
-
name
:
Build and test gevent
# Skip the bulk of the tests, running them emulated on arm takes
# forever
# forever. Likewise, don't build or even configure c-ares; in the emulated platform
# it takes at least 15 minutes and often much longer.
env
:
DOCKER_IMAGE
:
quay.io/pypa/manylinux2014_aarch64
GEVENTTEST_SKIP_ALL
:
1
GEVENTSETUP_DISABLE_ARES
:
1
run
:
scripts/releases/make-manylinux
-
name
:
Upload gevent wheels
uses
:
actions/upload-artifact@v2
...
...
_setuputils.py
View file @
d5268d5b
...
...
@@ -26,7 +26,8 @@ WIN = sys.platform.startswith('win')
RUNNING_ON_TRAVIS
=
os
.
environ
.
get
(
'TRAVIS'
)
RUNNING_ON_APPVEYOR
=
os
.
environ
.
get
(
'APPVEYOR'
)
RUNNING_ON_CI
=
RUNNING_ON_TRAVIS
or
RUNNING_ON_APPVEYOR
RUNNING_ON_GITHUB_ACTIONS
=
os
.
environ
.
get
(
'GITHUB_ACTIONS'
)
RUNNING_ON_CI
=
RUNNING_ON_TRAVIS
or
RUNNING_ON_APPVEYOR
or
RUNNING_ON_GITHUB_ACTIONS
RUNNING_FROM_CHECKOUT
=
os
.
path
.
isdir
(
os
.
path
.
join
(
THIS_DIR
,
".git"
))
...
...
@@ -77,7 +78,7 @@ def glob_many(*globs):
# They should all begin with ``GEVENTSETUP_``
def
_
bool_from_environ
(
key
):
def
bool_from_environ
(
key
):
value
=
os
.
environ
.
get
(
key
)
if
not
value
:
return
...
...
@@ -97,9 +98,9 @@ def _check_embed(key, defkey, path=None, warn=False):
those don't exist, then check for the existence of *path* and return
that (if path is given)
"""
value
=
_
bool_from_environ
(
key
)
value
=
bool_from_environ
(
key
)
if
value
is
None
:
value
=
_
bool_from_environ
(
defkey
)
value
=
bool_from_environ
(
defkey
)
if
value
is
not
None
:
if
warn
:
print
(
"Warning: gevent setup: legacy environment key %s or %s found"
...
...
scripts/releases/make-manylinux
View file @
d5268d5b
...
...
@@ -82,13 +82,17 @@ if [ -d /gevent -a -d /opt/python ]; then
cd
/tmp/build
git clone /gevent gevent
cd
gevent
echo
Configuring cares
time
(
cd
deps/c-ares
&&
./configure
--disable-dependency-tracking
-C
>
/dev/null
)
if
[
-z
"
$GEVENTSETUP_DISABLE_ARES
"
]
;
then
echo
Configuring cares
time
(
cd
deps/c-ares
&&
./configure
--disable-dependency-tracking
-C
>
/dev/null
)
else
echo
Not configuring c-ares because it is disabled
fi
rm
-rf
/gevent/wheelhouse
mkdir
/gevent/wheelhouse
OPATH
=
"
$PATH
"
which auditwheel
for
variant
in
`
ls
-d
/opt/python/cp
{
27,3
6,3
7,38,39
}
*
`
;
do
for
variant
in
`
ls
-d
/opt/python/cp
{
27,37,38,39
}
*
`
;
do
export
PATH
=
"
$variant
/bin:
$OPATH
"
echo
"Building
$variant
$(
python
--version
)
"
...
...
@@ -108,7 +112,9 @@ if [ -d /gevent -a -d /opt/python ]; then
python
-c
'from __future__ import print_function; from gevent._compat import get_clock_info; print("clock info", get_clock_info("perf_counter"))'
python
-c
'from __future__ import print_function; import greenlet; print(greenlet, greenlet.__version__)'
python
-c
'from __future__ import print_function; import gevent.core; print("loop", gevent.core.loop)'
python
-c
'from __future__ import print_function; import gevent.ares; print("ares", gevent.ares)'
if
[
-z
"
$GEVENTSETUP_DISABLE_ARES
"
]
;
then
python
-c
'from __future__ import print_function; import gevent.ares; print("ares", gevent.ares)'
fi
if
[
-z
"
$GEVENTTEST_SKIP_ALL
"
]
;
then
# TODO: Make the testrunner automatically repeat flaky tests.
...
...
@@ -143,5 +149,5 @@ fi
# Travis CI and locally we want `-ti`, but github actions doesn't have a TTY, so one
# or the other of the arguments causes this to fail with 'input device is not a TTY'
# Pas through whether we're running on github or not to help with caching.
docker run
--rm
-e
GITHUB_ACTIONS
-e
GEVENTTEST_SKIP_ALL
-e
DOCKER_IMAGE
-v
"
$(
pwd
)
:/gevent"
-v
"
$LCACHE
:/cache"
-v
"
$HOME
/.ccache:/ccache"
${
DOCKER_IMAGE
:-
quay
.io/pypa/manylinux2010_x86_64
}
/gevent/scripts/releases/
$(
basename
$0
)
docker run
--rm
-e
G
EVENTSETUP_DISABLE_ARES
-e
G
ITHUB_ACTIONS
-e
GEVENTTEST_SKIP_ALL
-e
DOCKER_IMAGE
-v
"
$(
pwd
)
:/gevent"
-v
"
$LCACHE
:/cache"
-v
"
$HOME
/.ccache:/ccache"
${
DOCKER_IMAGE
:-
quay
.io/pypa/manylinux2010_x86_64
}
/gevent/scripts/releases/
$(
basename
$0
)
ls
-l
wheelhouse
setup.py
View file @
d5268d5b
...
...
@@ -21,6 +21,7 @@ from _setuputils import GeventClean
from
_setuputils
import
BuildFailed
from
_setuputils
import
cythonize1
from
_setuputils
import
get_include_dirs
from
_setuputils
import
bool_from_environ
# Environment variables that are intended to be used outside of our own
# CI should be documented in ``installing_from_source.rst``
...
...
@@ -170,6 +171,10 @@ EXT_MODULES = [
TRACER
,
]
if
bool_from_environ
(
'GEVENTSETUP_DISABLE_ARES'
):
print
(
"c-ares module disabled, not building"
)
EXT_MODULES
.
remove
(
ARES
)
LIBEV_CFFI_MODULE
=
'src/gevent/libev/_corecffi_build.py:ffi'
LIBUV_CFFI_MODULE
=
'src/gevent/libuv/_corecffi_build.py:ffi'
cffi_modules
=
[]
...
...
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