Commit b900950f authored by Marco Govoni's avatar Marco Govoni

Merge branch 'py-patch' into 'master'

py patch

See merge request west-rcc/westpy!3
parents 6d84f5fe 284ed4d7
......@@ -10,9 +10,24 @@ westpy_build:
stage: build
image: ubuntu:latest
before_script:
- echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
- apt-get update > /dev/null
- apt-get install -qq git >/dev/null
- apt-get install -qq build-essential wget python-pip python-dev > /dev/null
- apt-get install -qq apt-utils > /dev/null
- apt-get install -qq dialog apt-utils -y > /dev/null
- apt-get install -qq build-essential > /dev/null
- apt-get install -qq pkg-config > /dev/null
- apt-get install -qq libpng-dev > /dev/null
- apt-get install -qq pandoc > /dev/null
- apt-get install -qq wget git > /dev/null
- export PY_DIR="/opt/anaconda"
- cd /opt
- wget https://repo.continuum.io/archive/Anaconda3-5.2.0-Linux-x86_64.sh
- /bin/bash /opt/Anaconda3-5.2.0-Linux-x86_64.sh -b -p $PY_DIR
- export PATH=$PY_DIR/bin:$PATH
- conda upgrade conda
- conda upgrade scipy numpy matplotlib scikit-learn
- conda update --prefix $PY_DIR anaconda
- which python
script:
- git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL westpy
- cd westpy
......@@ -25,6 +40,7 @@ westpy_doc_build:
stage: doc
image: debian:7
before_script:
- echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
- apt-get update > /dev/null
- apt-get install -qq build-essential > /dev/null
- apt-get install -qq apt-utils > /dev/null
......@@ -41,7 +57,7 @@ westpy_doc_build:
- cd /opt
- export PY_VERSION="3.5.4"
- wget https://www.python.org/ftp/python/$PY_VERSION/Python-$PY_VERSION.tgz
- tar -xzvf Python-$PY_VERSION.tgz
- tar -xzf Python-$PY_VERSION.tgz
- cd Python-$PY_VERSION
- export PY_DIR="/opt/python"
- ./configure --prefix $PY_DIR
......@@ -50,9 +66,8 @@ westpy_doc_build:
- ln -s $PY_DIR/bin/python3.5 $PY_DIR/bin/python
- export PATH=$PY_DIR/bin:$PATH
- wget https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- which python
- which pip
- python get-pip.py
- pip install nbsphinx
- pip install sphinx_rtd_theme
- pip install ipython
......@@ -62,4 +77,4 @@ westpy_doc_build:
- git describe
- cd doc
- make html
- ls _build/html
\ No newline at end of file
- ls _build/html
......@@ -15,7 +15,7 @@ setup(name='westpy',
'pyyaml',
'datetime',
'requests',
'mendeleev',
'mendeleev',
'signac',
'urllib3'
],
......
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