/
install.sh
executable file
·82 lines (63 loc) · 2.34 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash -ex
if [ "$OS" = "macos" ]; then
# Adjust PATH in macOS because conda is not at front of it
PATH=/usr/local/miniconda/envs/test/bin:/usr/local/miniconda/condabin:$PATH
fi
# Install dependencies
if [ "$USE_CONDA" = "true" ]; then
if [ "$OS" != "win" ]; then
# Install nomkl to avoid installing Intel MKL libraries
conda install nomkl -q -y
fi
# Install main dependencies
conda install python=$PYTHON_VERSION --file requirements/conda.txt -q -y -c spyder-ide/label/dev
# Install test ones
conda install python=$PYTHON_VERSION --file requirements/tests.txt -c spyder-ide -q -y
if [ "$OS" = "win" ]; then
# Install Pyzmq 19 because our tests are failing with version 20
conda install pyzmq=19
fi
# Remove packages we have subrepos for
conda remove spyder-kernels --force -q -y
conda remove python-language-server --force -q -y
else
# Update pip and setuptools
pip install -U pip setuptools
# Install Spyder and its dependencies from our setup.py
pip install -e .[test]
# Remove pytest-xvfb because it causes hangs
pip uninstall -q -y pytest-xvfb
# Install qtpy from Github
pip install git+https://github.com/spyder-ide/qtpy.git
# Install qtconsole from Github
pip install git+https://github.com/jupyter/qtconsole.git
# Install QtAwesome from Github
pip install git+https://github.com/spyder-ide/qtawesome.git
# Remove packages we have subrepos for
pip uninstall spyder-kernels -q -y
pip uninstall python-language-server -q -y
fi
# This is necessary only for Windows (don't know why).
if [ "$OS" = "win" ]; then
# Install python-language-server from our subrepo
pushd external-deps/python-language-server
pip install --no-deps -q -e .
popd
fi
# To check our manifest
pip install check-manifest
# Create environment for Jedi environments tests
conda create -n jedi-test-env -q -y python=3.6 flask spyder-kernels
conda list -n jedi-test-env
# Create environment to test conda activation before launching a spyder kernel
conda create -n spytest-ž -q -y python=3.6 spyder-kernels
conda list -n spytest-ž
# Install pyenv
if [ "$RUN_SLOW" = "false" ]; then
if [ "$OS" != "win" ]; then
curl https://pyenv.run | bash
$HOME/.pyenv/bin/pyenv install 3.8.1
fi
fi
# Coverage
pip install codecov