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
3d4cb509
Commit
3d4cb509
authored
May 02, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable configure caching to try to speed up builds, especially of cares.
[appveyor skip]
parent
9610e1a1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
16 deletions
+30
-16
.gitignore
.gitignore
+3
-0
.travis.yml
.travis.yml
+24
-14
_setupares.py
_setupares.py
+1
-1
_setuplibev.py
_setuplibev.py
+1
-1
_setuputils.py
_setuputils.py
+1
-0
No files found.
.gitignore
View file @
3d4cb509
...
...
@@ -45,6 +45,7 @@ docs/__pycache__
# Artifacts of configuring in place
deps/c-ares/config.log
deps/c-ares/config.status
deps/c-ares/config.cache
deps/c-ares/stamp-h1
deps/c-ares/stamp-h2
deps/c-ares/ares_build.h.orig
...
...
@@ -73,6 +74,7 @@ deps/libev/Makefile
deps/libev/config.log
deps/libev/config.h
deps/libev/config.status
deps/libev/config.cache
deps/libev/configure-output.txt
deps/libev/libtool
deps/libev/stamp-h1
...
...
@@ -86,6 +88,7 @@ deps/libuv/Makefile
deps/libuv/config.log
deps/libuv/config.h
deps/libuv/config.status
deps/libev/config.cache
deps/libduv/libtool
deps/libuv/stamp-h1
deps/libuv/.libs
...
...
.travis.yml
View file @
3d4cb509
...
...
@@ -51,6 +51,10 @@ matrix:
before_install
:
-
export PATH=$BUILD_RUNTIMES/snakepit/$TRAVIS_PYTHON_VERSION.d/bin:$PATH
-
export G_SITE=$BUILD_RUNTIMES/snakepit/$TRAVIS_PYTHON_VERSION.d/lib/*/site-packages/
# Restore the configure caches
-
if [-f $BUILD_LIBS/config.cache.ares ]; then cp $BUILD_LIBS/config.cache.ares deps/c-ares/ ; fi
-
if [-f $BUILD_LIBS/config.cache.libev ]; then cp $BUILD_LIBS/config.cache.ares deps/libev/ ; fi
-
if [-f $BUILD_LIBS/config.cache.libuv ]; then cp $BUILD_LIBS/config.cache.ares deps/libuv/ ; fi
before_script
:
# Show some details of interest
...
...
@@ -62,6 +66,25 @@ before_script:
-
>
python -c "import gevent.ares; print(gevent.ares)"
cache
:
pip
:
true
directories
:
-
$HOME/.venv
-
$HOME/.runtimes
-
$HOME/.wheelhouse
-
$HOME/.ccache
-
$HOME/.libs
before_cache
:
-
rm -f $HOME/.cache/pip/log/debug.log
# Store the configure caches. Having a cache can speed up c-ares
# configure from 2-3 minutes to 20 seconds.
-
mkdir -p $BUILD_LIBS
-
cp deps/c-ares/config.cache $BUILD_LIBS/config.cache.ares
-
cp deps/libev/config.cache $BUILD_LIBS/config.cache.libev
-
cp deps/libuv/config.cache $BUILD_LIBS/config.cache.libuv
# Installing is taken care of by the first stage.
install
:
-
ls -l $BUILD_RUNTIMES/snakepit/
...
...
@@ -139,7 +162,7 @@ jobs:
# well as we would hope.
-
pushd deps/libev && ./configure --prefix=$BUILD_LIBS && make install && popd
-
pushd deps/c-ares && ./configure --prefix=$BUILD_LIBS && make -j4 install && popd
-
pushd deps/libuv && ./autogen.sh && ./configure --disable-static --prefix=$BUILD_LIBS && make -j4 install && popd
-
pushd deps/libuv && ./autogen.sh && ./configure -
C -
-disable-static --prefix=$BUILD_LIBS && make -j4 install && popd
# libev builds a manpage each time, and it includes today's date, so it frequently changes.
# delete to avoid repacking the archive
-
rm -rf $BUILD_LIBS/share/man/
...
...
@@ -279,16 +302,3 @@ jobs:
notifications
:
email
:
false
cache
:
pip
:
true
directories
:
-
$HOME/.venv
-
$HOME/.runtimes
-
$HOME/.wheelhouse
-
$HOME/.ccache
-
$HOME/.libs
before_cache
:
-
rm -f $HOME/.cache/pip/log/debug.log
_setupares.py
View file @
3d4cb509
...
...
@@ -43,7 +43,7 @@ else:
ares_configure_command
=
' '
.
join
([
"(cd "
,
quoted_dep_abspath
(
'c-ares'
),
" && if [ -r ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi "
,
" && sh ./configure --disable-dependency-tracking "
+
_m32
+
"CONFIG_COMMANDS= "
,
" && sh ./configure --disable-dependency-tracking
-C
"
+
_m32
+
"CONFIG_COMMANDS= "
,
" && cp ares_config.h ares_build.h
\
"
$OLDPWD
\
"
"
,
" && cat ares_build.h "
,
" && if [ -r ares_build.h.orig ]; then mv ares_build.h.orig ares_build.h; fi)"
,
...
...
_setuplibev.py
View file @
3d4cb509
...
...
@@ -30,7 +30,7 @@ LIBEV_EMBED = should_embed('libev')
# Configure libev in place
libev_configure_command
=
' '
.
join
([
"(cd "
,
quoted_dep_abspath
(
'libev'
),
" && sh ./configure > configure-output.txt"
,
" && sh ./configure
-C
> configure-output.txt"
,
")"
,
])
...
...
_setuputils.py
View file @
3d4cb509
...
...
@@ -391,6 +391,7 @@ class GeventClean(clean):
'config.h'
,
'config.log'
,
'config.status'
,
'config.cache'
,
'configure-output.txt'
,
'.libs'
):
...
...
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