From baee03c569c91b745a1e025660b19a718db16e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Thu, 28 Sep 2017 12:18:58 +0200 Subject: New upstream version 3.0.0 --- doc/generated/functions.gen | 251 +++++--------------------------------------- 1 file changed, 29 insertions(+), 222 deletions(-) (limited to 'doc/generated/functions.gen') diff --git a/doc/generated/functions.gen b/doc/generated/functions.gen index e80c1c9..79a83c6 100644 --- a/doc/generated/functions.gen +++ b/doc/generated/functions.gen @@ -96,7 +96,7 @@ Examples: # which the method will be called; the Python # convention is to call it 'self'. def my_method(self, arg): - print "my_method() got", arg + print("my_method() got", arg) # Use the global AddMethod() function to add a method # to the Environment class. This @@ -530,37 +530,6 @@ Example: env.AppendUnique(CCFLAGS = '-g', FOO = ['foo.yyy']) - - - - - env.BitKeeper() - - - -A factory function that -returns a Builder object -to be used to fetch source files -using BitKeeper. -The returned Builder -is intended to be passed to the -SourceCode -function. - - - -This function is deprecated. For details, see the entry for the -SourceCode -function. - - - -Example: - - - -env.SourceCode('.', env.BitKeeper()) - @@ -997,63 +966,6 @@ below, for a complete explanation of the arguments and behavior. A now-deprecated synonym for env.Clone(). - - - - - env.CVS(repository, module) - - - -A factory function that -returns a Builder object -to be used to fetch source files -from the specified -CVS -repository. -The returned Builder -is intended to be passed to the -SourceCode -function. - - - -This function is deprecated. For details, see the entry for the -SourceCode -function. - - - -The optional specified -module -will be added to the beginning -of all repository path names; -this can be used, in essence, -to strip initial directory names -from the repository path names, -so that you only have to -replicate part of the repository -directory hierarchy in your -local build directory. - - - -Examples: - - - -# Will fetch foo/bar/src.c -# from /usr/local/CVSROOT/foo/bar/src.c. -env.SourceCode('.', env.CVS('/usr/local/CVSROOT')) - -# Will fetch bar/src.c -# from /usr/local/CVSROOT/foo/bar/src.c. -env.SourceCode('.', env.CVS('/usr/local/CVSROOT', 'foo')) - -# Will fetch src.c -# from /usr/local/CVSROOT/foo/bar/src.c. -env.SourceCode('.', env.CVS('/usr/local/CVSROOT', 'foo/bar')) - @@ -1114,7 +1026,7 @@ timestamp, such as can happen when restoring files from backup archives. Specifies that a target shall be considered out of date and rebuilt -if the dependency's content has changed sine the last time +if the dependency's content has changed since the last time the target was built, as determined be performing an MD5 checksum on the dependency's contents @@ -1131,7 +1043,7 @@ can be used as a synonym for Specifies that a target shall be considered out of date and rebuilt -if the dependency's content has changed sine the last time +if the dependency's content has changed since the last time the target was built, except that dependencies with a timestamp that matches the last time the target was rebuilt will be @@ -2102,7 +2014,7 @@ import atexit def print_build_failures(): from SCons.Script import GetBuildFailures for bf in GetBuildFailures(): - print "%s failed: %s" % (bf.node, bf.errstr) + print("%s failed: %s" % (bf.node, bf.errstr)) atexit.register(print_build_failures) @@ -3060,56 +2972,6 @@ dict = env.ParseFlags('-O2', '-Dfoo', '-Dbar=1') dict = env.ParseFlags(['-O2', '-Dfoo -Dbar=1']) dict = env.ParseFlags('-O2', '!echo -Dfoo -Dbar=1') - - - - - env.Perforce() - - - -A factory function that -returns a Builder object -to be used to fetch source files -from the Perforce source code management system. -The returned Builder -is intended to be passed to the -SourceCode -function. - - - -This function is deprecated. For details, see the entry for the -SourceCode -function. - - - -Example: - - - -env.SourceCode('.', env.Perforce()) - - - -Perforce uses a number of external -environment variables for its operation. -Consequently, this function adds the -following variables from the user's external environment -to the construction environment's -ENV dictionary: -P4CHARSET, -P4CLIENT, -P4LANGUAGE, -P4PASSWD, -P4PORT, -P4USER, -SystemRoot, -USER, -and -USERNAME. - @@ -3346,7 +3208,7 @@ every 10 Nodes: def my_progress_function(node, *args, **kw): - print 'Evaluating node %s!' % node + print('Evaluating node %s!' % node) Progress(my_progress_function, interval=10) @@ -3458,50 +3320,28 @@ Multiple targets can be passed in to a single call to - + - env.RCS() + PyPackageDir(modulename) + + + env.PyPackageDir(modulename) -A factory function that -returns a Builder object -to be used to fetch source files -from RCS. -The returned Builder -is intended to be passed to the -SourceCode -function: - - - -This function is deprecated. For details, see the entry for the -SourceCode -function. +This returns a Directory Node similar to Dir. +The python module / package is looked up and if located +the directory is returned for the location. +modulename +Is a named python package / module to +lookup the directory for it's location. - -Examples: - - - -env.SourceCode('.', env.RCS()) - - - -Note that -scons -will fetch source files -from RCS subdirectories automatically, -so configuring RCS -as demonstrated in the above example -should only be necessary if -you are fetching from -RCS,v -files in the same -directory as the source files, -or if you need to explicitly specify RCS -for a specific subdirectory. +If +modulename +is a list, SCons returns a list of Dir nodes. +Construction variables are expanded in +modulename. @@ -3679,47 +3519,6 @@ the specified See the section "Scanner Objects," below, for a complete explanation of the arguments and behavior. - - - - - env.SCCS() - - - -A factory function that -returns a Builder object -to be used to fetch source files -from SCCS. -The returned Builder -is intended to be passed to the -SourceCode -function. - - - -Example: - - - -env.SourceCode('.', env.SCCS()) - - - -Note that -scons -will fetch source files -from SCCS subdirectories automatically, -so configuring SCCS -as demonstrated in the above example -should only be necessary if -you are fetching from -s.SCCS -files in the same -directory as the source files, -or if you need to explicitly specify SCCS -for a specific subdirectory. - @@ -4199,6 +3998,14 @@ which corresponds to --random; and +silent + + +which corresponds to --silent. + + + + stack_size -- cgit v1.2.3