[Scons-users] Does SCons has an automatic rebuild option ?

Julien Kauffmann julien.kauffmann at freelan.org
Wed Oct 31 08:44:47 EDT 2012


On Wed, 31 Oct 2012 12:06:48 +0100, Jean-Baptiste Lab
<jeanbaptiste.lab at gmail.com> wrote:

> Hi Julien

>

> On 31 October 2012 11:48, Bruce Adams <tortoise_74 at yahoo.co.uk> wrote:

>> It sounds like what you want is a continous integration system.

>> This is a slightly different job from a build tool and it usually makes more

>> sense have the continousl integration system use

>> the build tool rather than to combine the two into.

>> I would recommend looking at Jenkins for a good open source continuous

>> integration server though it might be overkill for your needs.

>> I don't know how well it plays with scons as it comes from java land but I

>> have used it with some success on plain old makefile projects.

>

> I agree with Bruce's comments, it may not make sense to build this

> functionality into SCons. There are ways for you to achieve what you

> want relatively easily using a "file watching utility". I quickly

> found this link which you may find useful:

>

> http://superuser.com/questions/181517/how-to-execute-a-command-whenever-a-file-changes

>

> Regards,

>

> JB

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users


Hi,

That sure looks like a continuous integration system to some extent.

I knew Jenkins but that is indeed too heavy for the task: the goal was
mainly to provide an easy and integrated way to easy the work for a
developer that spends a lot of time typing "scons" in his terminal.

Actually, before asking this question, I was already able to get a
satisfying and quick result with "watchmedo", the script that comes with
the [watchdog](http://pypi.python.org/pypi/watchdog) Python module.

The final command looked like:


> watchmedo shell-command --patterns="*.scss" --command="scons"


I was mainly thinking about having an option for that in SCons because
SCons has all the necessary information to do that more efficiently
(from a list of targets, it knows exactly what to watch and what to
rebuild).

That said, I can understand the rationale that SCons should just handle
"regular" one-time builds and not become an over-featured tool.

So anyway, thanks for your answers and feedback.

Regards,

Julien Kauffmann.


More information about the Scons-users mailing list