Commit 859d94a5 authored by Jisi Liu's avatar Jisi Liu Committed by GitHub

Merge pull request #3544 from anandolee/master

Add Python 3.5, 3.6 && drop Python 2.6
parents 364060bb 610e4338
...@@ -217,6 +217,13 @@ RUN apt-get install -y \ ...@@ -217,6 +217,13 @@ RUN apt-get install -y \
# -- For javascript -- \ # -- For javascript -- \
npm npm
##################
# Python 3.5 3.6 dependencies.
RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
python3.5-dev \
python3.6-dev \
&& apt-get clean
# On Debian/Ubuntu, nodejs binary is named 'nodejs' because the name 'node' # On Debian/Ubuntu, nodejs binary is named 'nodejs' because the name 'node'
# is taken by another legacy binary. We don't have that legacy binary and # is taken by another legacy binary. We don't have that legacy binary and
# npm expects the binary to be named 'node', so we just create a symbol # npm expects the binary to be named 'node', so we just create a symbol
......
[tox] [tox]
envlist = envlist =
py{26,27,33,34}-{cpp,python} py{27,33,34,35,36}-{cpp,python}
[testenv] [testenv]
usedevelop=true usedevelop=true
......
...@@ -234,9 +234,10 @@ internal_install_python_deps() { ...@@ -234,9 +234,10 @@ internal_install_python_deps() {
sudo apt-get install -y python-software-properties # for apt-add-repository sudo apt-get install -y python-software-properties # for apt-add-repository
sudo apt-add-repository -y ppa:fkrull/deadsnakes sudo apt-add-repository -y ppa:fkrull/deadsnakes
sudo apt-get update -qq sudo apt-get update -qq
sudo apt-get install -y python2.6 python2.6-dev
sudo apt-get install -y python3.3 python3.3-dev sudo apt-get install -y python3.3 python3.3-dev
sudo apt-get install -y python3.4 python3.4-dev sudo apt-get install -y python3.4 python3.4-dev
sudo apt-get install -y python3.5 python3.5-dev
sudo apt-get install -y python3.6 python3.6-dev
fi fi
} }
...@@ -278,7 +279,7 @@ build_python() { ...@@ -278,7 +279,7 @@ build_python() {
cd python cd python
# Only test Python 2.6/3.x on Linux # Only test Python 2.6/3.x on Linux
if [ $(uname -s) == "Linux" ]; then if [ $(uname -s) == "Linux" ]; then
envlist=py\{26,27,33,34\}-python envlist=py\{27,33,34,35,36\}-python
else else
envlist=py27-python envlist=py27-python
fi fi
...@@ -292,9 +293,9 @@ build_python_cpp() { ...@@ -292,9 +293,9 @@ build_python_cpp() {
export LD_LIBRARY_PATH=../src/.libs # for Linux export LD_LIBRARY_PATH=../src/.libs # for Linux
export DYLD_LIBRARY_PATH=../src/.libs # for OS X export DYLD_LIBRARY_PATH=../src/.libs # for OS X
cd python cd python
# Only test Python 2.6/3.x on Linux # Only test Python 3.x on Linux
if [ $(uname -s) == "Linux" ]; then if [ $(uname -s) == "Linux" ]; then
envlist=py\{26,27,33,34\}-cpp envlist=py\{27,33,34,35,36\}-cpp
else else
envlist=py27-cpp envlist=py27-cpp
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment