Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8274543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:45:26+00:00 2026-06-08T07:45:26+00:00

By default, SCons seems to look at the ‘recipe’ used to build a program

  • 0

By default, SCons seems to look at the ‘recipe’ used to build a program and extracts implicit dependencies from it. For example suppose my SConstruct contains:

Command('foo', 'foocreator.py', '/usr/bin/python foocreator.py > foo')

And I’ve already built ‘foo’ (‘foo’ is up to date).
Now I change SConstruct (or more realistically, pass different options) so that the command for ‘foo’ becomes:

Command('foo', 'foocreator.py', '/usr/bin/qrsh -V -cwd /usr/bin/python foocreator.py > foo')

(In other words, run the foocreator.py script through SGE)
Now SCons tries to rebuild foo, –debug=explain tells me that this is because of a “new dependency on /usr/bin/qrsh” and a “dropped dependency on /usr/bin/python”).

How can I prevent this inference of dependencies from the recipe, preferably globally? So far I haven’t even been able to find a specification of this behaviour. I don’t want to have to spell out the fact that ‘foo’ doesn’t really depend on python or qrsh, because I would have to do that for every target and for every possible location of those programs. There must be a “right” way.

EDIT: I have also now tried explicitly adding Ignores for each target, as in:

Ignore('foo', '/usr/bin/python')
Ignore('foo', '/usr/bin/qrsh')

and even this doesn’t work! SCons still wants to rebuild everything whenever I switch between running through qrsh and not.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:45:31+00:00Added an answer on June 8, 2026 at 7:45 am

    I found the documented solution: there is a construction variable IMPLICIT_COMMAND_DEPENDENCIES which controls exactly this behaviour. It is documented on http://www.scons.org/doc/HTML/scons-man.html (but I discovered it by searching through the scons source code!)

    So this gives the behaviour I want based on my original example.

    env = Environment(IMPLICIT_COMMAND_DEPENDENCIES =0, ... )
    Command('foo', 'foocreator.py', '/usr/bin/python foocreator.py > foo')
    

    (or)

    env = Environment(IMPLICIT_COMMAND_DEPENDENCIES =0, ... )
    Command('foo', 'foocreator.py', '/usr/bin/python foocreator.py > foo')
    

    I can switch between the two definitions for target ‘foo’ and scons will not think foo is out of date.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

'Default UITableViewCell styles from Apple should not be used' Can somebody tell me what
I've got a scons build using a simple, common directory setup: project/ SConstruct src/
I'm using Hi-Tech C compiler and wish to use Scons to build my projects.
Googlebot keeps trying to call ajax methods on my website. For example: default.aspx/GetStuffWithAjax The
default SBT log level is info (see http://code.google.com/p/simple-build-tool/wiki/RunningSbt ). How do I set it
By default IntelliJ IDEA 7.0.4 seems to use 4 spaces for indentation in XML
By default, it seems like my web application is using LocalSqlServer as the connection
By default, CakePHP seems to use the SHA1 algorithm to hash passwords and only
The default exception declarations in Thrift IDL file generates Exception objects inherited from Java
Default JVM uses maximum 1.5 GB RAM/JVM Java application. But my Server have 8

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.