[Scons-users] Virtualenv and Scons?

Bill Deegan bill at baddogconsulting.com
Thu Nov 19 11:54:43 EST 2015


Install scons via pip in your virtualenv should give you access to those
libraries via plain "import xyz"?
-Bill

On Thu, Nov 19, 2015 at 7:01 AM, Henry Gomersall <heng at cantab.net> wrote:

> On 19/11/15 14:26, Henry Gomersall wrote:
> > On 07/09/13 01:17, Larry Gadallah wrote:
> >>> >> Date: Fri, 6 Sep 2013 14:16:17 -0700
> >>> >> From: Bill Deegan <bill at baddogconsulting.com>
> >>> >> Subject: Re: [Scons-users] Virtualenv and Scons?
> >>> >> To: SCons users mailing list <scons-users at scons.org>
> >>> >>
> >>> >> Larry,
> >>> >>
> >>> >>
> >>> >> So you want to run sphinx via python calls inside a SConstruct?
> >>> >> as in:
> >>> >> import sphinx
> >>> >> sphinx.do_something() ?
> >>> >>
> >>> >> -Bill
> >> >
> >> > Hello Bill:
> >> >
> >> > Yes, that is exactly what we want to do, except we don't want to have
> to
> >> > have several dozen Python libraries installed in the system Python
> path on
> >> > every build machine. We'd like to be able to create the Python
> environment
> >> > on the fly, using virtualenv. Hence the desire to run virtualenv/pip
> >> > inside a Sconstruct.
> >> >
> >> > Thanks,
> >> >
> > Resurrecting a very old thread, I also want to this.
> >
> > Is there a way to import libraries that reside only in a virtualenv
> > inside SCons?
>
> So it's possible to hack this by installing scons in a virtualenv and
> adding a .pth file inside the virtualenv site-packages directory
> pointing to the SCons directory.
>
> It would be great if SCons could detect being installed in a virtualenv
> and to that itself.
>
> Cheers,
>
> Henry
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20151119/101c8a8c/attachment-0001.html>


More information about the Scons-users mailing list