Skip to content

Commit 0e85434

Browse files
committed
Beginnings of a conda package
1 parent 9160d26 commit 0e85434

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

JUPYTER.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,16 @@ Build the Cadabra Jupyter kernel with::
147147
The 'new' button in the Jupyterhub file browser should now offer you
148148
the option of creating a new Cadabra notebook.
149149

150+
151+
Creating a Conda package of the Cadabra Jupyter kernel
152+
------------------------------------------------------
153+
154+
To build a Conda package of the Cadabra Jupyter kernel from scratch,
155+
first install miniconda as above, and activate::
156+
157+
source ~/miniconda3/bin/activate
158+
159+
Install the prerequisites for building conda packages::
160+
161+
conda install conda-build
162+

conda/build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Conda build script to build a Cadabra Jupyter kernel.
2+
3+
mkdir build
4+
cd build
5+
cmake -G $CMAKE_GENERATOR \
6+
-DCMAKE_INSTALL_PREFIX=$PREFIX \
7+
-DCMAKE_BUILD_TYPE=Release $SRC_DIR \
8+
-DENABLE_JUPYTER=ON \
9+
-DENABLE_FRONTEND=OFF \
10+
-DCMAKE_INCLUDE_PATH=${HOME}/miniconda3/include \
11+
-DCMAKE_LIBRARY_PATH=${HOME}/miniconda3/lib \
12+
-DCMAKE_INSTALL_PREFIX=${HOME}/miniconda3
13+
14+
cmake --build .
15+
cmake --build . --target install

conda/meta.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package:
2+
name: "cadabra2-jupyter-kernel"
3+
version: "2.2.7"
4+
5+
source:
6+
path: ../
7+
8+
requirements:
9+
build:
10+
- python
11+
- setuptools
12+
- cmake
13+
- pkg-config
14+
- glibmm
15+
- zeromq
16+
- cppzmq
17+
- xtl
18+
- cryptopp
19+
- sqlite
20+
- util-linux
21+
- xeus
22+
- nlohmann_json
23+
- sympy
24+
- jupyter
25+
26+
run:
27+
- python
28+
29+
about:
30+
home: https://cadabra.science
31+
license: GPL
32+
license_family: GPL
33+
summary: Jupyter kernel for the Cadabra2 computer algebra system.

0 commit comments

Comments
 (0)