pymacs installer should not install to default location
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
summary: currently (v0.24-beta2), if one's python is installed under /opt, pymacs will install to /usr/local. I claim this is a bug, and assert that pymacs should raise an error if it cannot install to the $(which python).
details:
I recently tried to install pymacs to satisfy python-mode's requirement (see
https:/
) onto a box with
$ lsb_release -ds
Linux Mint Debian Edition
$ uname -rv
2.6.39-2-amd64 #1 SMP Tue Jul 5 02:51:22 UTC 2011
$ emacs --version
GNU Emacs 23.3.1
$ which python
/opt/EPD/
$ python --version
Python 2.7.2 -- EPD 7.1-2 (64-bit)
Note that this `python` is
* EPD=="Enthought Python Distribution" (for numpy, scipy, etc)
* on the search path
* not under /usr
To install pymacs, I did
URI="https:/
DIR="${
mkdir -p "${DIR}"
pushd "${DIR}"
wget -O - "${URI}" | tar xfz -
mv pinard-
rm -fr pinard-
cd ..
ln -s ./pymacs-
cd pymacs/
make check EMACS="$(which emacs)" PYTHON="$(which python)"
Last line was specifically motivated by
http://
> To check a particular Emacs and Python combination, use
> make check EMACS=some_Emacs PYTHON=some_Python.
and resulted in
> Summary: 353 good tests in 10.14 seconds.
I then did
me@it:~
without noting that
http://
> From the top-level of the Pymacs distribution, execute make install.
> If the Python interpreter has a non-standard name or location, rather do
> make install PYTHON=Some_Python
As one would guess, if one had RTFMed, pymacs proceeded to install incorrectly
> creating /usr/local/
> copying build/lib.
> copying build/lib.
> byte-compiling /usr/local/
> byte-compiling /usr/local/
> running install_egg_info
> Writing /usr/local/
which then caused a second bug, involving the the error message
> Pymacs helper did not start within 30 seconds
in the minibuffer, about which I will create a separate bug report.
HTH, Tom Roche <email address hidden>
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
Changed in python-mode: | |
importance: | Undecided → Medium |
Changed in python-mode: | |
milestone: | none → 6.0.4 |
Changed in python-mode: | |
status: | New → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
The separate bug report is
https:/ /bugs.launchpad .net/python- mode/+bug/ 852293
(I'd edit this bug=852287 if I could see how to do so--I should put a FR on launchpad.)