Skip to content

Make CacheDir toggle caching #1011

Closed
Closed

Description

@bdbaddog

This issue was originally created at: 2004-11-15 13:08:42.
This issue was reported by: mightyllamas.
mightyllamas said at 2004-11-15 13:08:42

It was really handy for us to be able to turn caching
on and off,
so I tweaked FS.py so that any nodes that were made
had the current value of CacheDir registered with them,
and this registered value used instead of the value
stored in default_fs.

I don't know what the deeper implications of this are,
or if this is desirable in general, but was useful for us.

stevenknight said at 2004-12-02 13:32:41

STATUS:

Needs discussion: YES
Needs additional work: YES
Needs unit tests: YES
Needs end-to-end test(s): YES
Needs man page update: YES
Needs User's Guide update: YES

A patch that allows you enable or disable
CacheDir() caching for individual Nodes (files).
Would people find that useful? If so, I think I'd
rather have it be controlled by the construction
environment through which the target is built,
not by pushing another attribute onto every
Node. That would make it more convenient to
enable/disable this for groups of Nodes, rather
than each Node individually.

If we do add something like this, it needs some
kind of documented public interface (this patch
just adds a magic attribute that you'd set or
clear by hand). Comments?

mightyllamas said at 2004-12-02 13:43:55

I completely agree - enabling it on an construction
environment basis
would be better than the way my current patch does it.
I implemented it like this mostly since it was easy, and I don't
know my way around the SCons implementation well enough yet :)
I can investigate that further.

Right now, the "interface" is uses is to call CacheDir(None)
to turn
off caching, and CacheDir(pathToCache) to turn it on.
Would that be suitable for the environment version?

Where would be the best place to start discussion - scons-dev
or scons-users? My first feeble attempt on scons-users failed,
perhaps I should try with a bit more feeling?

issues@scons said at 2004-12-02 13:43:55

Converted from SourceForge tracker item 1066934

stevenknight said at 2006-05-26 04:11:17

Created an attachment (id=19)
Patch, copied from SourceForge tracker.

stevenknight said at 2007-08-15 12:56:59

Making this issue about configuring CacheDir() through construction environments
makes this a duplicate of 1639. (I have a fix ready to go.) Marking this one
appropriately.

*** This issue has been marked as a duplicate of 1639 ***

stevenknight attached fs.patch at 2008-03-25 11:08:15.

Patch, copied from SourceForge tracker.

stevenknight said this issue is a duplicate of #1639 at 2007-08-15 12:56:59.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions