[Scons-users] Virtualenv and Scons?

Henry Gomersall heng at cantab.net
Thu Nov 19 10:01:59 EST 2015


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


More information about the Scons-users mailing list