Skip to content

Instantly share code, notes, and snippets.

@mathrick
Created December 4, 2020 21:03
Show Gist options
  • Save mathrick/82cdc90766d0101d476edcd6608f6964 to your computer and use it in GitHub Desktop.
Save mathrick/82cdc90766d0101d476edcd6608f6964 to your computer and use it in GitHub Desktop.
Anaconda-mode slowness repro
#!/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