[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / jupyter

Annotation of OpenXM/src/jupyter/Makefile, Revision 1.4

1.4     ! takayama    1: # $OpenXM: OpenXM/src/jupyter/Makefile,v 1.3 2019/05/28 00:26:23 takayama Exp $
1.1       takayama    2: usage:
                      3:        @echo "install-debian-for-debug clean-debian"
                      4:        @echo "install-mac-anaconda2-for-debug"
                      5:        @echo "put-to-ox-dir  get-from-ox-dir"
1.4     ! takayama    6:        @echo "  "
        !             7:        @echo "On Ubuntu20.04/wsl2, do apt install jupyter-notebook and pip3 install metakernel. Start with /usr/bin/jupyter notebook"
1.1       takayama    8:
1.4     ! takayama    9: #Debian_ASIR_KERNEL_DIR=${HOME}/.local/lib/python2.7/site-packages/asir_kernel
        !            10: Debian_ASIR_KERNEL_DIR=${HOME}/.local/lib/python3.8/site-packages/asir_kernel
1.1       takayama   11: Debian_ASIR_KERNEL_INFO=${HOME}/.local/share/jupyter/kernels/asir
                     12: install-debian-for-debug:
                     13:        -mkdir ${HOME}/bin
                     14:        -ln -s  `pwd`/asir-cli ${HOME}/bin
                     15:        -mkdir -p ${Debian_ASIR_KERNEL_DIR}
                     16:        -mkdir -p ${Debian_ASIR_KERNEL_INFO}
                     17:        -ln -s `pwd`/kernel.py ${Debian_ASIR_KERNEL_DIR}/kernel.py
                     18:        -ln -s `pwd`/kernel.json ${Debian_ASIR_KERNEL_DIR}/kernel.json
                     19:        -ln -s `pwd`/__init__.py ${Debian_ASIR_KERNEL_DIR}/__init__.py
                     20:        -ln -s `pwd`/__main__.py ${Debian_ASIR_KERNEL_DIR}/__main__.py
                     21:        -ln -s `pwd`/kernel.json ${Debian_ASIR_KERNEL_INFO}/kernel.json
                     22:        -@echo "${HOME}/bin should be in the command search path. 'which asir-cli' returns asir-cli? "
                     23: clean-debian:
                     24:        rm -rf ${Debian_ASIR_KERNEL_DIR} ${Debian_ASIR_KERNEL_INFO} ${HOME}/bin/asir-cli
                     25:
                     26: OX_DIR=${OpenXM_HOME}/src/jupyter
1.3       takayama   27: ASIR_KERNEL_FILES=kernel.py kernel.json __init__.py __main__.py asir-cli
1.1       takayama   28: put-to-ox-dir:
                     29:        -mkdir -p ${OX_DIR}
1.2       takayama   30:        -for i in ${ASIR_KERNEL_FILES}; do rsync -avzu $$i ${OX_DIR} ; done
1.1       takayama   31:        -rsync -avzu  Makefile ${OX_DIR}
                     32:        @echo "pushd ${OX_DIR} and commit; and  popd and make get-from-ox-dir and commit to change tags."
                     33: get-from-ox-dir:
                     34:        -for i in ${ASIR_KERNEL_FILES}; do rsync -avzu ${OX_DIR}/$$i . ; done
                     35:
                     36: ANACONDA2_ASIR_KERNEL_DIR=/anaconda2/lib/python2.7/site-packages/asir_kernel
                     37: ANACONDA2_ASIR_KERNEL_INFO=/anaconda2/share/jupyter/kernels/asir
                     38: install-mac-anaconda2:
                     39:        -mkdir ${HOME}/bin
                     40:        -ln -s  `pwd`/asir-cli ${HOME}/bin
                     41:        -mkdir -p ${ANACONDA2_ASIR_KERNEL_DIR}
                     42:        -mkdir -p ${ANACONDA2_ASIR_KERNEL_INFO}
                     43:        -ln -s `pwd`/kernel.py ${ANACONDA2_ASIR_KERNEL_DIR}/kernel.py
                     44:        -ln -s `pwd`/kernel.json ${ANACONDA2_ASIR_KERNEL_DIR}/kernel.json
                     45:        -ln -s `pwd`/__init__.py ${ANACONDA2_ASIR_KERNEL_DIR}/__init__.py
                     46:        -ln -s `pwd`/__main__.py ${ANACONDA2_ASIR_KERNEL_DIR}/__main__.py
                     47:        -ln -s `pwd`/kernel.json ${ANACONDA2_ASIR_KERNEL_INFO}/kernel.json
                     48:        -@echo "${HOME}/bin should be in the command search path. 'which asir-cli' returns asir-cli? "
                     49:
                     50: clean-mac-anaconda2:
                     51:        rm -rf ${ANACONDA2_ASIR_KERNEL_DIR} ${ANACONDA2_ASIR_KERNEL_INFO} ${HOME}/bin/asir-cli
                     52:
                     53:
                     54:
                     55:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>