On Fri, Oct 22, 2010 at 03:32:17PM +0200, Laurens Van Houtven wrote:
> I first tried to use my distro's package, but there appears to be a
> major discrepancy between that and the docs:

Yup.  Warned about in my recent docs:
  
http://www.physics.drexel.edu/~wking/code/be/doc/install.html#distribution-packages
Hopefully a 1.0.0 release will come out soon and initiate another
round of distro packaging!

> When I use pip to install bugs-everywhere from the gitorious repo (I already
> ran make/setup.py build to get the _version), I get this:
> 
> http://bpaste.net/show/10296/

 1 l...@lagavulin:~/Development$ pip install --install-option=--user -e be

`--user` means you're trying to install under `~/.local/`.

 6     install_dir /usr/local/lib/python2.6/dist-packages/
 7     Checking .pth file support in /usr/local/lib/python2.6/dist-packages/
 8     error: can't create or remove files in install directory
 9
10     The following error occurred while trying to add or remove files in the
11     installation directory:
12
13         [Errno 13] Permission denied: 
'/usr/local/lib/python2.6/dist-packages/test-easy-install-6859.pth'

But pip is trying to install a system-wide version under `/usr/local`.

94 Command /usr/bin/python -c "import setuptools; 
__file__='/home/lvh/Development/be/setup.py'; 
execfile('/home/lvh/Development/be/setup.py')" develop --no-deps

Indeed, I get the same error message when running that command
directly.  However,
  $ /usr/bin/python -c "import setuptools; 
__file__='/home/lvh/Development/be/setup.py'; 
execfile('/home/lvh/Development/be/setup.py')" develop --no-deps --user
works as expected.  So pip is dropping your
  --install-option=--user
somewhere along the way.

I ran your initial command and looked into the pip-log.txt

Traceback (most recent call last):
  ...
  File "/usr/lib/python2.6/dist-packages/pip.py", line 2017, in install
    requirement.install(install_options)
  File "/usr/lib/python2.6/dist-packages/pip.py", line 1494, in install
    self.install_editable()
  ...
So pip doesn't pass your install_options into install_editable.

Checking out the current pip source,
  $ hg clone http://bitbucket.org/ianb/pip
It looks like they've fixed this (pip/req.py L606):
      def install_editable(self, install_options, global_options=()):
Since
  changeset:   768:e8295fc07734
  parent:      746:abcf24782049
  user:        Ronny Pfannschmidt <[email protected]>
  date:        Wed Aug 18 23:55:39 2010 +0200
  summary:     support install/global options for editables
which is after the 0.8 release
  pip $ hg tags
  tip                              796:2abe82ba88d3
  0.8                              735:c4b01c654ae5
So you need to do one of:
  1) Not use pip for now, and stick with `python setup.py install ...`.
  2) Install pip from recent source.
  3) Wait for a new pip release and its subsequent Ubuntu packaging.
     https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/521170

-- 
This email may be signed or encrypted with GPG (http://www.gnupg.org).
The GPG signature (if present) will be attached as 'signature.asc'.
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

My public key is at http://www.physics.drexel.edu/~wking/pubkey.txt

Attachment: pgpvjKS6Co2Qb.pgp
Description: PGP signature

_______________________________________________
Be-devel mailing list
[email protected]
http://void.printf.net/cgi-bin/mailman/listinfo/be-devel

Reply via email to