Skip to content

Commit 2280b0f

Browse files
committed
Use python-build and virtualenv to set up 3.5-dev
The resulting archive should be expanded from `/` by root to be useful
1 parent 09dbaea commit 2280b0f

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.travis.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
language: c
1+
language: python
22

3-
sudo: false
3+
env:
4+
global:
5+
- VERSION='3.5-dev'
6+
- ALIAS='3.5'
7+
- INSTALL_DEST=/opt/python
8+
- PACKAGES='numpy nose pytest mock wheel'
49

510
install:
6-
- pushd $HOME
7-
- git clone --depth=1 https://github.com/python/cpython.git
8-
- pushd cpython
9-
- ./configure --prefix = $HOME/python
10-
- make
11-
- make install
12-
- du -hs $HOME/python
13-
- popd; popd
11+
- true
1412

1513
script:
16-
- pushd $HOME/cpython
17-
- make test
14+
- cd $HOME
15+
- sudo python-build $VERSION $INSTALL_DEST
16+
- sudo ln -s $INSTALL_DEST/$VERSION $INSTALL_DEST/$ALIAS
17+
- virtualenv --distribute --python=$INSTALL_DEST/$VERSION/bin/python /home/travis/virtualenv/python$VERSION
18+
- ln -s $HOME/virtualenv/python$VERSION $HOME/virtualenv/python$ALIAS
19+
- $HOME/virtualenv/python$VERSION/bin/pip install --upgrade $PACKAGES
20+
- tar cf python-$VERSION.tar $INSTALL_DEST/$VERSION $INSTALL_DEST/$ALIAS $HOME/virtualenv/python$VERSION $HOME/virtualenv/python$ALIAS
21+
- bzip2 python-$VERSION.tar
22+
- ls -lh python-$VERSION.tar.bz2

0 commit comments

Comments
 (0)