|
Hi,
I set up a virtualenv so that an extra-search-dir overwrites a globally installed package. This works (from inside the venv) with python (i.e. sys.path has the extra-search-dir before the system wide package dir in /usr/local/lib). However, in ipython, the sys.path includes the system wide packages before the extra-search-dir. How does this happen? Can I set it up so that the extra-search-dir is included in the sys.path before everything else? Thanks, Thomas _______________________________________________ IPython-User mailing list [hidden email] http://mail.scipy.org/mailman/listinfo/ipython-user |
|
On 13 April 2012 15:41, Thomas Wiecki <[hidden email]> wrote:
> However, in ipython, the sys.path includes the system wide packages > before the extra-search-dir. How does this happen? Have you installed IPython inside the virtualenv? If not, please do and see if the problem continues. If you have, how is an extra-search-dir specified? I'm not all that familiar with virtualenv features. Thomas _______________________________________________ IPython-User mailing list [hidden email] http://mail.scipy.org/mailman/listinfo/ipython-user |
|
On Fri, Apr 13, 2012 at 11:02 AM, Thomas Kluyver <[hidden email]> wrote:
> On 13 April 2012 15:41, Thomas Wiecki <[hidden email]> wrote: >> However, in ipython, the sys.path includes the system wide packages >> before the extra-search-dir. How does this happen? > > Have you installed IPython inside the virtualenv? If not, please do > and see if the problem continues. Yes, that fixes the problem, thanks! > If you have, how is an extra-search-dir specified? I'm not all that > familiar with virtualenv features. It puts the paths into a .pth file that lives in the virtual-env site-package dir. Thomas > Thomas > _______________________________________________ > IPython-User mailing list > [hidden email] > http://mail.scipy.org/mailman/listinfo/ipython-user _______________________________________________ IPython-User mailing list [hidden email] http://mail.scipy.org/mailman/listinfo/ipython-user |
|
On 13 April 2012 17:04, Thomas Wiecki <[hidden email]> wrote:
>> Have you installed IPython inside the virtualenv? If not, please do >> and see if the problem continues. > > Yes, that fixes the problem, thanks! OK, great. For 0.13, we're going to have basic virtualenv support - so if a virtualenv is active when you start IPython, it will put the virtualenv library directories on sys.path. But this is deliberately minimal: if you want to use any more advanced features of virtualenv (such as ignoring system packages), you will need to install IPython inside the virtualenv. Thomas _______________________________________________ IPython-User mailing list [hidden email] http://mail.scipy.org/mailman/listinfo/ipython-user |
| Powered by Nabble | Edit this page |
