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
2ec73e02
Commit
2ec73e02
authored
May 02, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to building a wheel and then installing to better cache. [appveyor skip]
parent
25d08457
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
.travis.yml
.travis.yml
+15
-9
No files found.
.travis.yml
View file @
2ec73e02
...
...
@@ -52,9 +52,9 @@ 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.libev deps/libev/ ; fi
-
if [ -f $BUILD_LIBS/config.cache.libuv ]; then cp $BUILD_LIBS/config.cache.libuv deps/libuv/ ; fi
-
if [ -f $BUILD_LIBS/config.cache.ares ]; then cp $BUILD_LIBS/config.cache.ares deps/c-ares/
config.cache
; fi
-
if [ -f $BUILD_LIBS/config.cache.libev ]; then cp $BUILD_LIBS/config.cache.libev deps/libev/
config.cache
; fi
-
if [ -f $BUILD_LIBS/config.cache.libuv ]; then cp $BUILD_LIBS/config.cache.libuv deps/libuv/
config.cache
; fi
before_script
:
# Show some details of interest
...
...
@@ -134,7 +134,10 @@ jobs:
# so that we don't have to use build isolation and can better use the cache;
# Note that we can't use -U for cffi and greenlet on PyPy.
-
&build-gevent-deps
pip install -U setuptools wheel && pip install cffi cython greenlet
-
pip install --no-build-isolation .[test]
# Next, build the wheel *in place*. This helps ccache, and also lets us cache the configure
# output (pip install uses a random temporary directory, making this difficult)
-
python setup.py bdist_wheel
-
pip install `ls dist/*whl`[test]
script
:
ccache -s
before_script
:
true
after_success
:
true
...
...
@@ -154,12 +157,13 @@ jobs:
# Install the Python runtime
-
*build-gevent-python
-
*build-gevent-deps
-
ls -l $G_SITE
# Install the C dependencies to a known location. This is used
# to test 'no embed' cases. It might seem like it would prime
# the CCache for when we *do* embed if we did it as part of the generic build stage,
# but overall it just seems to slow things down. The Travis caching and CCache is not working as
# well as we would hope.
# the CCache for when we *do* embed if we did it as part of
# the generic build stage, but overall it just seems to slow
# things down. The Travis caching and CCache is not working as
# well as we would hope. (XXX: Probably because in the past we
# used pip install which used temporary directories.)
-
pushd deps/libev && ./configure -C --prefix=$BUILD_LIBS && make install && popd
-
pushd deps/c-ares && ./configure -C --prefix=$BUILD_LIBS && make -j4 install && popd
-
pushd deps/libuv && ./autogen.sh && ./configure -C --disable-static --prefix=$BUILD_LIBS && make -j4 install && popd
...
...
@@ -167,10 +171,12 @@ jobs:
# delete to avoid repacking the archive
-
rm -rf $BUILD_LIBS/share/man/
-
ls -l $BUILD_LIBS $BUILD_LIBS/lib $BUILD_LIBS/include
-
pip install --no-build-isolation .[test]
-
python setup.py bdist_wheel
-
pip install `ls dist/*whl`[test]
# Test that we're actually linking
# to the .so file.
-
objdump -p $G_SITE/gevent/libev/_corecffi*so | grep "NEEDED.*libev.so"
-
objdump -p $G_SITE/gevent/libev/corecext*so | grep "NEEDED.*libev.so"
-
objdump -p $G_SITE/gevent/libuv/_corecffi*so | grep "NEEDED.*libuv.so"
script
:
# Verify that we got non-embedded builds
...
...
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