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
Adding single package from global site-packages?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brad Buran  
View profile  
 More options Sep 28 2010, 1:14 pm
From: Brad Buran <bbu...@alum.mit.edu>
Date: Tue, 28 Sep 2010 10:14:53 -0700 (PDT)
Local: Tues, Sep 28 2010 1:14 pm
Subject: Adding single package from global site-packages?
I created a virtualenv using --no-site-packages for development.  I
was able to install most of the packages I need in this virtualenv
using pip; however, I've been having difficulty getting PyQt4 and
wxPython installed (they don't seem to have a setup.py file).  I gave
up and just used apt-get to install these packages to the global site-
packages directory.

Now that I've installed these two packages to the global site-packages
directory, I'd like to add them to my virtualenv.  Is there a
recommended way of adding these two packages to my virtualenv (without
cluttering the virtualenv with all the additional Python packages that
Ubuntu seems to install by default)?  It appears that PyQt4 lives
under /usr/lib/pymodules/python2.6/PyQt4.  Should I just create a
symlink from my virtualenv site-packages directory or copy the files
from this folder over?

TIA,
Brad


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brad Buran  
View profile  
 More options Sep 28 2010, 2:38 pm
From: Brad Buran <bbu...@alum.mit.edu>
Date: Tue, 28 Sep 2010 14:38:00 -0400
Subject: Re: [venv] Adding single package from global site-packages?
The symlink works great.  PyQt4 doesn't appear under pip freeze, but I
can live with that.

Brad


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tres Seaver  
View profile  
 More options Sep 28 2010, 2:15 pm
From: Tres Seaver <tres.sea...@gmail.com>
Date: Tue, 28 Sep 2010 14:15:40 -0400
Local: Tues, Sep 28 2010 2:15 pm
Subject: Re: [venv] Adding single package from global site-packages?
On 09/28/2010 01:14 PM, Brad Buran wrote:

> I created a virtualenv using --no-site-packages for development.  I
> was able to install most of the packages I need in this virtualenv
> using pip; however, I've been having difficulty getting PyQt4 and
> wxPython installed (they don't seem to have a setup.py file).  I gave
> up and just used apt-get to install these packages to the global site-
> packages directory.

> Now that I've installed these two packages to the global site-packages
> directory, I'd like to add them to my virtualenv.  Is there a
> recommended way of adding these two packages to my virtualenv (without
> cluttering the virtualenv with all the additional Python packages that
> Ubuntu seems to install by default)?  It appears that PyQt4 lives
> under /usr/lib/pymodules/python2.6/PyQt4.  Should I just create a
> symlink from my virtualenv site-packages directory or copy the files
> from this folder over?

symlinks are the recommended way to get a "partial site-packages" setup
working.

Tres.
--
===================================================================
Tres Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »