-
-
Save mathrick/82cdc90766d0101d476edcd6608f6964 to your computer and use it in GitHub Desktop.
Anaconda-mode slowness repro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ROOT=$(mktemp -d anaconda-repro-XXXXX --tmpdir) | |
HOME="${ROOT}/home" | |
EMACSDIR="${HOME}/.emacs.d" | |
PYTHONDIR="${HOME}/python-code" | |
echo "ROOT is ${ROOT}" | |
echo "EMACSDIR is ${EMACSDIR}" | |
echo "PYTHONDIR is ${PYTHONDIR}" | |
cd "${ROOT}" | |
git clone -q https://github.com/mathrick/mood-emacs.git | |
git -C mood-emacs checkout -q 3ff07a048 | |
mkdir -p "${EMACSDIR}" "${PYTHONDIR}" | |
ln -s "${ROOT}/mood-emacs/"{init,mood}.el "${EMACSDIR}/" | |
echo "import arrow" > "${PYTHONDIR}/foo.py" | |
python3 -m venv "${PYTHONDIR}/venv" | |
"${PYTHONDIR}/venv/bin/pip" -q install arrow | |
echo "(init! :lang python)" > "${EMACSDIR}/config.el" | |
emacs --eval '(progn (find-file "/ssh:localhost:'"${PYTHONDIR}/foo.py"'") (pyvenv-activate "/ssh:localhost:'"${PYTHONDIR}/venv"'"))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment