Skip to content

Commit

Permalink
Fix framework build script
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed May 31, 2023
1 parent 550297d commit a135850
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sage_framework/build_sage_framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ VENV_DIR="local/var/lib/sage/venv-python${PYTHON_LONG_VERSION}"
VENV_PYLIB="${VENV_DIR}/lib/python${PYTHON_VERSION}"
NBEXTENSIONS="${VERSION_DIR}/${VENV_DIR}/share/jupyter/nbextensions"
THREEJS_SAGE="${NBEXTENSIONS}/threejs-sage"
INPUT_HOOKS=${VENV_PYLIB}/site-packages/IPython/terminal/pt_inputhooks
INPUT_HOOKS=${VERSION_DIR}/${VENV_PYLIB}/site-packages/IPython/terminal/pt_inputhooks
# This allows Sage.framework to be a symlink to the framework inside the application.
if ! [ -d "${BUILD}/Sage.framework" ]; then
mkdir -p "${BUILD}"/Sage.framework
Expand Down Expand Up @@ -74,7 +74,8 @@ sed "s/__VERSION__/${VERSION}/g" "${FILES}"/kernel.json > ${KERNEL_DIR}/kernel.j
cp -p ${FILES}/${TKINTER} ${VERSION_DIR}/${VENV_PYLIB}/lib-dynload/${TKINTER_TARGET}
cp ${FILES}/sagedoc.py ${VERSION_DIR}/${VENV_PYLIB}/site-packages/sage/misc/sagedoc.py
cp -p ${FILES}/tkinter/__init__.py ${VERSION_DIR}/${VENV_PYLIB}/tkinter/__init__.py
cp ${FILES}/osx.py ${INPUTHOOKS}
echo cp ${FILES}/osx.py ${INPUT_HOOKS}
cp ${FILES}/osx.py ${INPUT_HOOKS}

# Fix illegal symlinks that point outside of the bundle
# rm ${VERSION_DIR}/local/share/gap/{gac,gap}
Expand Down
1 change: 1 addition & 0 deletions package/build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ cp ../logos/* $KERNEL_DIR
cp ../jinja/output/kernel.json $KERNEL_DIR
cp ../jinja/output/Distribution .
cp ../jinja/output/Welcome.rtf resources
mkdir -p local_texlive/texmf-local/tex/latex/local
cp -rp $SAGETEX local_texlive/texmf-local/tex/latex/local
mkdir -p packages

Expand Down

0 comments on commit a135850

Please sign in to comment.