|
62 | 62 | echo "Upgrading pip in virtualenv..." |
63 | 63 | .venv/bin/pip install -q -U pip wheel |
64 | 64 |
|
65 | | - # Check if nbsphinx is installed and install it if not |
| 65 | + # Install nbsphinx, pandoc, sphinx-design and ipython |
66 | 66 | echo "Checking for nbsphinx, pandoc, sphinx-design and ipython..." |
67 | | - if ! .venv/bin/pip show nbsphinx > /dev/null 2>&1; then |
68 | | - echo "nbsphinx not found. Installing..." |
69 | | - .venv/bin/pip install -q nbsphinx |
70 | | - else |
71 | | - echo "nbsphinx is already installed." |
72 | | - fi |
73 | | - |
74 | | - if ! .venv/bin/pip show pandoc > /dev/null 2>&1; then |
75 | | - echo "pandoc not found. Installing..." |
76 | | - .venv/bin/pip install -q pandoc |
77 | | - else |
78 | | - echo "pandoc is already installed." |
79 | | - fi |
80 | | - |
81 | | - if ! .venv/bin/pip show sphinx-design > /dev/null 2>&1; then |
82 | | - echo "sphinx-design not found. Installing..." |
83 | | - .venv/bin/pip install -q sphinx-design |
84 | | - else |
85 | | - echo "sphinx-design is already installed." |
86 | | - fi |
87 | | - |
88 | | - if ! .venv/bin/pip show ipython > /dev/null 2>&1; then |
89 | | - echo "ipython not found. Installing..." |
90 | | - .venv/bin/pip install -q ipython |
91 | | - else |
92 | | - echo "ipython is already installed." |
93 | | - fi |
94 | | - |
95 | | - if ! .venv/bin/pip show ipywidgets > /dev/null 2>&1; then |
96 | | - echo "ipywidgets not found. Installing..." |
97 | | - .venv/bin/pip install -q ipywidgets |
98 | | - else |
99 | | - echo "ipywidgets is already installed." |
100 | | - fi |
101 | | - |
102 | | - |
| 67 | + .venv/bin/pip install -q -U nbsphinx pandoc sphinx-design ipython ipywidgets |
103 | 68 | fi |
104 | 69 |
|
105 | 70 | # Make sure that Sphinx, PyDoctor (and maybe doc2dash) are up-to-date in the virtualenv |
|
0 commit comments