Skip to content

Commit e72ae37

Browse files
committed
📦 Move some requirements for Jupyter kernels
1 parent c2f4e09 commit e72ae37

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

cpac-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# C-PAC_tutorials is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
44
# C-PAC_tutorials is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
55
# You should have received a copy of the GNU Lesser General Public License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
6-
bash_kernel>=0.7.2
76
cpac>=0.5.0
87
ipykernel
98
jupyter
109
matplotlib>=3.1.3
1110
matplotlib-inline>=0.1.2
12-
pandas
11+
numpy==1.25.1
12+
pandas==2.0.3

postBuild

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
#!/bin/bash
22

3-
# Create and activate cpac (wrapper) virtual environment
3+
# Create and activate bash kernel
4+
python -m bash_kernel.install
5+
6+
# Create and activate cpac (wrapper kernel) virtual environment
47
python -m venv wrapper
8+
# shellcheck source=/dev/null
59
source wrapper/bin/activate
610
pip install --upgrade pip
711
pip install -r cpac-requirements.txt
812
python -m ipykernel install --user --name wrapper --display-name "cpac (commandline wrapper)"
913
deactivate
1014

11-
# Create and activate C-PAC (core) virtual environment
15+
# Create and activate C-PAC (core kernel) virtual environment
1216
python -m venv core
17+
# shellcheck source=/dev/null
1318
source core/bin/activate
1419
pip install --upgrade pip
1520
pip install nipype==1.8.6 numpy==1.25.1 pyyaml==6.0 "setuptools<60.0" voluptuous==0.13.1 wheel

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
# C-PAC_tutorials is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
44
# C-PAC_tutorials is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
55
# You should have received a copy of the GNU Lesser General Public License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
6+
bash_kernel>=0.7.2
67
ipykernel
78
jupyterlab

0 commit comments

Comments
 (0)