Comment 3 for bug 821986

Revision history for this message
tlroche (tom-roche) wrote :

I'm having 2 problems with byte-compile-directory.sh and python-mode.el-6.0.2:

1 byte-compile-directory.sh is not included with python-mode.el-6.0.2 (shouldn't it be?)
2 byte-compile-directory.sh abends on not finding pymacs/pymacs.el (which is not included, either)

How I reproduced:

VERSION="6.0.2"
PKG_URI="http://launchpad.net/python-mode/trunk/${VERSION}/+download/python-mode.el-${VERSION}.tar.gz"
BCD_URI="http://bazaar.launchpad.net/~python-mode-devs/python-mode/python-mode/download/head:/bytecompiledirectory-20110807183508-3zdf7fxpxvabeveb-1/byte-compile-directory.sh"
BCD_FN="$(basename ${BCD_URI})"
MY_SITE_LISP="${HOME}/.emacs.d/site-lisp"
ROOT_DIR="${MY_SITE_LISP}/python"
VERSION_DIR="${ROOT_DIR}/python-mode.el-${VERSION}"
for CMD in \
  "pushd ${ROOT_DIR}" \
  "wget -O - ${PKG_URI} | tar xfz -" \
  "popd" \
  "pushd ${VERSION_DIR}" \
  "wget ${BCD_URI}" \
  "chmod 755 ./${BCD_FN}" \
  "find ./ -name '*.el' | wc -l" \
  "find ./ -name '*.elc' | wc -l" \
  "./${BCD_FN}" \
  "find ./ -name '*.el' | wc -l" \
  "find ./ -name '*.elc' | wc -l" \
  "popd" \
; do
  echo -e "${CMD}"
  eval "${CMD}"
done

produces

> pushd /home/me/.emacs.d/site-lisp/python
> wget -O - http://launchpad.net/python-mode/trunk/6.0.2/+download/python-mode.el-6.0.2.tar.gz | tar xfz -
...
> 2011-08-27 20:55:50 (187 KB/s) - written to stdout [129958/129958]
> popd
> pushd /home/me/.emacs.d/site-lisp/python/python-mode.el-6.0.2
> wget http://bazaar.launchpad.net/~python-mode-devs/python-mode/python-mode/download/head:/bytecompiledirectory-20110807183508-3zdf7fxpxvabeveb-1/byte-compile-directory.sh
...
> 2011-08-27 20:55:50 (38.7 MB/s) - “byte-compile-directory.sh” saved [1490/1490]
> chmod 755 ./byte-compile-directory.sh
> find ./ -name '*.el' | wc -l
> 7
> find ./ -name '*.elc' | wc -l
> 2
> ./byte-compile-directory.sh
> GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.4)
> of 2011-04-10 on brahms, modified by Debian
> Cannot open load file: /home/me/.emacs.d/site-lisp/python/python-mode.el-6.0.2/pymacs/pymacs.el
> find ./ -name '*.el' | wc -l
> 7
> find ./ -name '*.elc' | wc -l
> 2
> popd