Re: **JUNK** Value/Alias Nodes default to up-to-date
Bill Deegan <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAEyG4CEy8VT_b0rochoAK+EAB6AMDYZh-dbCtubaUnB1BgoKzw@mail.gmail.com> |
Maybe you explain what you're trying to do, rather than how you're currently trying to do it? Because this looks like a mess of hard to understand code and there's very likely a better way to do this. Those aliases would never be out of date with a static source. Your command has no source listed, so it will also never be out of date..(after the first time, if the file t1 was actually built). -Bill On Sun, Jan 2, 2022 at 2:20 PM Bill Deegan <[email protected]> wrote: > also why **JUNK** in subject? > > On Sun, Jan 2, 2022 at 2:20 PM Bill Deegan <[email protected]> > wrote: > >> What output do you see when you run your example? >> >> >> On Sun, Jan 2, 2022 at 7:56 AM Brad Kraemer <[email protected]> >> wrote: >> >>> Hello, >>> >>> I filed a GitHub Issue <https://github.com/SCons/scons/issues/4079> and >>> got bounced to this mailing list. So here we go again: >>> >>> Value/Alias nodes (as created by the Alias() and Value() >>> functions/methods receptively) default to up-to-date. >>> >>> SCons 4.1.0 >>> >>> Python 3.9 >>> >>> Installed from nixpkgs (NixOS, $ nix-env -iA nixos.scons) >>> >>> Linux >>> >>> Reproduction (SConstruct): >>> >>> def print_target_1(target, source, env): >>> print("Target 1 built") >>> >>> def print_alias_1(target, source, env): >>> print("[I'm not getting called]") >>> >>> def print_alias_2(target, source, env): >>> print("I'm getting called because of AlwaysBuild() workaround") >>> >>> t1 = Command("t1", [], Action(print_target_1, cmdstr=None)) >>> Default(t1) >>> >>> v = Value("_") >>> a1 = Alias("a1", v, Action(print_alias_1, cmdstr=None)) >>> a2 = Alias("a2", v, Action(print_alias_2, cmdstr=None)) >>> Depends(t1, a1) >>> Depends(t1, a2) >>> >>> AlwaysBuild(a2) >>> >>> >>> Invoke via executing '$ scons' from the directory where the above >>> SConstruct file exists. >>> >>> >>> Thanks, >>> >>> simplejack-src >>> >>> >>> _______________________________________________ >>> Scons-users mailing list >>> [email protected] >>> https://pairlist4.pair.net/mailman/listinfo/scons-users >>> >> _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users