Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Python modules installed by easy_install

Received: by 10.204.145.80 with SMTP id c16mr1900106bkv.2.1325571090819;
        Mon, 02 Jan 2012 22:11:30 -0800 (PST)
X-BeenThere: rope-dev@googlegroups.com
Received: by 10.204.195.145 with SMTP id ec17ls36236405bkb.1.gmail; Mon, 02
 Jan 2012 22:11:29 -0800 (PST)
Received: by 10.205.136.10 with SMTP id ii10mr1895457bkc.7.1325571089801;
        Mon, 02 Jan 2012 22:11:29 -0800 (PST)
Received: by 10.205.136.10 with SMTP id ii10mr1895456bkc.7.1325571089790;
        Mon, 02 Jan 2012 22:11:29 -0800 (PST)
Return-Path: <gcpr-rope-...@m.gmane.org>
Received: from lo.gmane.org (lo.gmane.org. [80.91.229.12])
        by gmr-mx.google.com with ESMTP id u4si34240463bkf.3.2012.01.02.22.11.29;
        Mon, 02 Jan 2012 22:11:29 -0800 (PST)
Received-SPF: pass (google.com: domain of gcpr-rope-...@m.gmane.org designates 80.91.229.12 as permitted sender) client-ip=80.91.229.12;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gcpr-rope-...@m.gmane.org designates 80.91.229.12 as permitted sender) smtp.mail=gcpr-rope-...@m.gmane.org
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <gcpr-rope-...@m.gmane.org>)
	id 1Rhxaq-0002cP-Ug
	for rope-dev@googlegroups.com; Tue, 03 Jan 2012 07:11:28 +0100
Received: from 123.114.37.7 ([123.114.37.7])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <rope-dev@googlegroups.com>; Tue, 03 Jan 2012 07:11:28 +0100
Received: from sdl.web by 123.114.37.7 with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <rope-dev@googlegroups.com>; Tue, 03 Jan 2012 07:11:28 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: rope-dev@googlegroups.com
From: Leo <sdl....@gmail.com>
Subject: Re: Python modules installed by easy_install
Date: Tue, 03 Jan 2012 14:11:13 +0800
Lines: 25
Message-ID: <m1ehvhz56m.fsf@gmail.com>
References: <11945b09-2ad0-4f1a-bc89-f502af438662@r16g2000prr.googlegroups.com>
	<20120201084930@lilem.mirepesht> <m1ipkuzfc8.fsf@gmail.com>
	<20120301084637@lilem.mirepesht>
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: use...@dough.gmane.org
X-Gmane-NNTP-Posting-Host: 123.114.37.7
Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUzRVhbQj4eZqO6SjnT
 eWpxnMetm5b6/PmidmqrAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F
 B9cBBwMLBfKABCMAAAFoSURBVCjPtZI9a8MwEIaFoc7aYDdelQMna0Em3tsSr0XUeE2Q6a22a+v+
 fk8fSSBkbDUI6dHpfe9OEvRgiD+ApqKPJgJeB6iUUXWESjUe/ig38AJrhqqvaU2nTIXbNvOQ40fe
 qdry4kyGoVWsfCQalXpHnJGM01wjWdYbMlXNFdsZDO69m9aqNqxEJqTEgbM5OF7wlEfIoll1Ked4
 LbM5X2EdILLokEdmI8z7g5cKED0cuTC930TYhy7ZDekkXVGw/L60TguJePPxcJF48lpsSUWEA/Ju
 jGFNgJOXc4Hz7TmAdBeu5Ve4AEjOi2/2jfd3cAJZ+IbNrvdjgBZY01b+HTuG3cLws6BJZqVOj/pp
 T0OqVwx3rFq+QmJwx3loK5JSLEhDIt62+mtC2C+SrAUxEbV6C6v2BRbd6pILBKFpepKZJHgGgrKF
 sptSUUoczpwg2pQ7ZH1tgs0ou/917mzz6Cs2//C978cv5l07L02orIEAAAAASUVORK5CYII=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3.50 (Mac OS X 10.6.8)
Cancel-Lock: sha1:qwkLKCtLCpgTv8rl9tJac0X69N4=

On 2012-01-03 13:16 +0800, Ali Gholami Rudi wrote:
> If adding the directory containing the sources to PYTHONPATH or to
> python_path project config helps rope to find the files, pycore can
> be changed to assume directories ending with .egg are source folders
> themselves (see get_python_path_folders() method in rope/base/pycore.py).
> Alternatively you can extend python_path to contain all such directories
> in the project_opened() callback in .ropeproject/config.py
>
> 	Ali

Thank you, Ali.

Unfortunately I am not familiar with what easy_install is doing. It
seems it evals easy-install.pth on the directory it manages to include
all the modules it installs. When I fire up the python shell in a
terminal, it just knows those packages but not rope at the moment.

,----[ /Library/Python/2.6/site-packages/easy-install.pth ]
| import sys; sys.__plen = len(sys.path)
| ./pip-1.0.2-py2.6.egg
| import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
`----


Leo