scons.git
15 years agoIssue 2265: Add additional --taskmastertrace= messages in the Task class.
stevenknight [Fri, 5 Dec 2008 08:16:58 +0000 (08:16 +0000)]
Issue 2265:  Add additional --taskmastertrace= messages in the Task class.
Refactor messages in the Taskmaster class to use new, common methods.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3805 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix issue #3: make Append/PrependUnique uniquify the appended/prepended list first.
garyo [Fri, 5 Dec 2008 03:22:28 +0000 (03:22 +0000)]
Fix issue #3: make Append/PrependUnique uniquify the appended/prepended list first.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3804 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix a Glob() exception (with stack trace) when an explicit Node
stevenknight [Tue, 2 Dec 2008 18:58:29 +0000 (18:58 +0000)]
Fix a Glob() exception (with stack trace) when an explicit Node
exists in a repository directory without a corresponding on-disk
file or directory.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3803 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoHighlights and roadmap update for checkpoing d20081125.
stevenknight [Wed, 26 Nov 2008 20:16:14 +0000 (20:16 +0000)]
Highlights and roadmap update for checkpoing d20081125.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3802 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoAccidently left a debug print in.
managan [Tue, 25 Nov 2008 18:37:22 +0000 (18:37 +0000)]
Accidently left a debug print in.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3794 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoAdd a test for the case of a .DVI build using a .eps graphics.
managan [Tue, 25 Nov 2008 18:32:19 +0000 (18:32 +0000)]
Add a test for the case of a .DVI build using a .eps graphics.
Test that we don't make a .pdf file from the graphic.
The patch also covers the case of requiring the graphics files
I search for to have an extension so we don't try to build fig.eps from fig.eps...

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3793 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoAdd reference to LoadableModule in SharedLibrary description
GregNoel [Wed, 19 Nov 2008 23:51:58 +0000 (23:51 +0000)]
Add reference to LoadableModule in SharedLibrary description

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3792 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdate Users Guide to clarify usage of site_scons and site_init.py.
garyo [Wed, 19 Nov 2008 01:29:38 +0000 (01:29 +0000)]
Update Users Guide to clarify usage of site_scons and site_init.py.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3791 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoInitialized merge tracking via "svnmerge" with revisions "1-3786" from
stevenknight [Sun, 16 Nov 2008 00:46:31 +0000 (00:46 +0000)]
Initialized merge tracking via "svnmerge" with revisions "1-3786" from
http://scons.tigris.org/svn/scons/branches/sgk_PathList

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3787 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoSpeed up Node.FS.EntryProxy.__getattr__() by not spending cycles
stevenknight [Sat, 15 Nov 2008 22:59:25 +0000 (22:59 +0000)]
Speed up Node.FS.EntryProxy.__getattr__() by not spending cycles
generating an AttributeError exception message that gets ignored most
of the time.  Instead, re-raise an AttributeError subclass that delays
message generation until its __str__() method is actually called.
(Brad Fitzpatrick)

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3785 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix typo found by Jared Grubb
GregNoel [Sat, 15 Nov 2008 21:04:58 +0000 (21:04 +0000)]
Fix typo found by Jared Grubb

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3784 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoI found that my coding for automatically building .pdf files from .eps files
managan [Wed, 12 Nov 2008 21:36:07 +0000 (21:36 +0000)]
I found that my coding for automatically building .pdf files from .eps files
failed when the .tex file is in a subdirectory.

I added a new test and made the one line fix.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3783 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoMerged revisions 3225-3226 via svnmerge from
stevenknight [Wed, 12 Nov 2008 00:12:33 +0000 (00:12 +0000)]
Merged revisions 3225-3226 via svnmerge from
http://scons.tigris.org/svn/scons/branches/sgk_subst

........
  r3225 | stevenknight | 2008-07-18 10:46:49 -0700 (Fri, 18 Jul 2008) | 3 lines

  Remove an unnecessary \n from the end of the $INSTALLSTR setting (unneeded
  because string substituion currently strips trailing white space).
........
  r3226 | stevenknight | 2008-07-19 07:17:10 -0700 (Sat, 19 Jul 2008) | 3 lines

  Use subst_list() for generating ToolSurrogate *COMSTR values so we don't
  rely on the current white-space compression behavior of subst().
........

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3781 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoPython 1.5 and 2.1 compatibility: string methods, nested scopes.
stevenknight [Wed, 12 Nov 2008 00:00:56 +0000 (00:00 +0000)]
Python 1.5 and 2.1 compatibility:  string methods, nested scopes.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3780 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoMerged revisions 3759-3762 via svnmerge from
stevenknight [Tue, 11 Nov 2008 02:23:03 +0000 (02:23 +0000)]
Merged revisions 3759-3762 via svnmerge from
http://scons.tigris.org/svn/scons/branches/sgk_subst

........
  r3759 | stevenknight | 2008-11-03 17:59:30 -0800 (Mon, 03 Nov 2008) | 3 lines

  Refactor individual unit test methods into separate TestCase
  sbblcasses, so we can start re-using test fixtures.
........
  r3760 | stevenknight | 2008-11-03 18:43:01 -0800 (Mon, 03 Nov 2008) | 4 lines

  Refactor the overlapping classes and dictionaries of values for testing
  scons_subst() and scons_subst_list() into the common SubstTestCase base
  class so we can re-use the same input for testing the new code.
........
  r3761 | stevenknight | 2008-11-03 22:43:51 -0800 (Mon, 03 Nov 2008) | 3 lines

  Split the large test methods into separate test methods for
  specific, individual pieces of functionality.
........
  r3762 | stevenknight | 2008-11-04 05:06:43 -0800 (Tue, 04 Nov 2008) | 4 lines

  Share code the basic comparison code between the scons_subst()
  and scons_subst_list() test cases by moving it into the base class
  and wrapping the call.
........

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3779 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoWindows portability: Avoid duplicate foo.lib targets by telling
stevenknight [Mon, 10 Nov 2008 05:25:31 +0000 (05:25 +0000)]
Windows portability:  Avoid duplicate foo.lib targets by telling
env.SharedLibrary() to not build an import library.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3776 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 2238: Add a __contains__() method to support the "val in env"
stevenknight [Sun, 9 Nov 2008 14:47:35 +0000 (14:47 +0000)]
Issue 2238:  Add a __contains__() method to support the "val in env"
statement for construction environments.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3775 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 2228: discard stderr by using os.devnull
GregNoel [Sun, 9 Nov 2008 02:02:04 +0000 (02:02 +0000)]
Issue 2228: discard stderr by using os.devnull

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3774 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix an exception and stack trace when Glob() hits an on-disk file or
stevenknight [Sat, 8 Nov 2008 01:46:33 +0000 (01:46 +0000)]
Fix an exception and stack trace when Glob() hits an on-disk file or
directory that begins with '#'.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3773 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix a nested-scope regression affecting Python 1.5, 2.0 and 2.1.
stevenknight [Fri, 7 Nov 2008 16:29:41 +0000 (16:29 +0000)]
Fix a nested-scope regression affecting Python 1.5, 2.0 and 2.1.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3772 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 2242: Minor style and loop enhancements
GregNoel [Fri, 7 Nov 2008 01:40:03 +0000 (01:40 +0000)]
Issue 2242: Minor style and loop enhancements

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3771 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 2235: File.Dir() creates files in the wrong place
GregNoel [Fri, 7 Nov 2008 01:34:18 +0000 (01:34 +0000)]
Issue 2235: File.Dir() creates files in the wrong place

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3770 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 2236: Add comment to clarify Configure.CheckType()
GregNoel [Fri, 7 Nov 2008 00:38:32 +0000 (00:38 +0000)]
Issue 2236: Add comment to clarify Configure.CheckType()

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3769 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdate src/CHANGES.txt for changes since 1.1.0.
stevenknight [Tue, 4 Nov 2008 13:36:37 +0000 (13:36 +0000)]
Update src/CHANGES.txt for changes since 1.1.0.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3763 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 2087: Handle Java classes declared in methods
pankrat [Fri, 31 Oct 2008 19:27:08 +0000 (19:27 +0000)]
Issue 2087: Handle Java classes declared in methods

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3756 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix uncaught KeyboardInterrupt.
stevenknight [Fri, 31 Oct 2008 16:33:33 +0000 (16:33 +0000)]
Fix uncaught KeyboardInterrupt.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3755 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix a nested scope issue for older Python versions.
stevenknight [Fri, 31 Oct 2008 13:36:01 +0000 (13:36 +0000)]
Fix a nested scope issue for older Python versions.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3754 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix use of isinstance(..., tuple) so it works in older Python versions.
stevenknight [Fri, 31 Oct 2008 13:33:56 +0000 (13:33 +0000)]
Fix use of isinstance(..., tuple) so it works in older Python versions.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3753 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix calling Exit() from within a Python function action, so that it gets
stevenknight [Fri, 31 Oct 2008 13:19:02 +0000 (13:19 +0000)]
Fix calling Exit() from within a Python function action, so that it gets
detected and exits with the specified value under Python versions before
2.5, by explicitly catching and re-raising the SystemExit exception.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3752 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoMove responsibility for extracting the exit status from executed tests
stevenknight [Fri, 31 Oct 2008 06:08:28 +0000 (06:08 +0000)]
Move responsibility for extracting the exit status from executed tests
from the TestCommon.py module to the wrapper classes in TestCmd.py
that we use as fallbacks if the subprocess module doesn't exist.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3751 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoThis new test and emitter update recursively checks the whole source of the
managan [Thu, 30 Oct 2008 23:00:18 +0000 (23:00 +0000)]
This new test and emitter update recursively checks the whole source of the
latex document for commands that affect what side effect files
will be created, and for graphics files that are included
(so we can convert postscript to pdf if pdflatex is being run).

Now that this is recursive we could tighten up on the side
effect file list (e.g. a \makeindex with no \index commands
won't make all the files we tell scons to expect as side effects)
but I think that is asking for trouble if we mess it up.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3750 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoOlder Python portability: isinstance() only takes a single class.
stevenknight [Thu, 30 Oct 2008 13:05:32 +0000 (13:05 +0000)]
Older Python portability:  isinstance() only takes a single class.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3749 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdate test/SCCS/diskcheck.py for recent GetBuildFailures()
stevenknight [Thu, 30 Oct 2008 12:57:56 +0000 (12:57 +0000)]
Update test/SCCS/diskcheck.py for recent GetBuildFailures()
robustness change, which changed the exit message in this case.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3748 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoexception must be stringified before comparison
GregNoel [Wed, 29 Oct 2008 23:55:16 +0000 (23:55 +0000)]
exception must be stringified before comparison

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3747 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoApplied Benoit Belley's patch in ticket 1957 improve the robustness of
garyo [Wed, 29 Oct 2008 03:01:00 +0000 (03:01 +0000)]
Applied Benoit Belley's patch in ticket 1957 improve the robustness of
GetBuildFailures().  New function convert_to_buildError, and use it in
several places so all build failures now go through it and are
returned as BuildError exceptions.  Had a small effect on output
formatting in many tests but no significant change to behavior.  I
reworked the patch a little to keep SCons exit status values the same
as before; this patch could make it simpler to change them in some
cases, e.g. exit with the errno of the failed action if desired.  One
nice side effect of this patch is that more scons errors print the
node that caused the error now.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3744 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoSpeed up Node.FS.FileFinder.find_file() by avoiding constructing debugging
stevenknight [Wed, 29 Oct 2008 02:29:13 +0000 (02:29 +0000)]
Speed up Node.FS.FileFinder.find_file() by avoiding constructing debugging
strings that will only get thrown away during normal operation.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3743 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoAdd 1.1.0 to the instal_scons.py script.
stevenknight [Wed, 29 Oct 2008 01:08:37 +0000 (01:08 +0000)]
Add 1.1.0 to the instal_scons.py script.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3742 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 2228: Add os.devnull to the SCons.compat layer.
stevenknight [Tue, 28 Oct 2008 01:00:25 +0000 (01:00 +0000)]
Issue 2228:  Add os.devnull to the SCons.compat layer.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3741 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoSet FORTRANMODDIRPREFIX for ifort tool (should fix 1260).
cournape [Mon, 20 Oct 2008 12:21:09 +0000 (12:21 +0000)]
Set FORTRANMODDIRPREFIX for ifort tool (should fix 1260).

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3711 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdate docstring for ifort.
cournape [Mon, 20 Oct 2008 12:20:46 +0000 (12:20 +0000)]
Update docstring for ifort.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3710 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix trailing space.
cournape [Mon, 20 Oct 2008 12:20:22 +0000 (12:20 +0000)]
Fix trailing space.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3709 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 1568: fix a stack trace when --debug=include tries to handle
stevenknight [Fri, 17 Oct 2008 02:20:50 +0000 (02:20 +0000)]
Issue 1568:  fix a stack trace when --debug=include tries to handle
a library as an argument.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3694 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix use of VariantDir when the -n option is used and doesn't,
stevenknight [Wed, 15 Oct 2008 14:36:07 +0000 (14:36 +0000)]
Fix use of VariantDir when the -n option is used and doesn't,
therefore, actually create the variant directory.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3693 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoRemove the old, empty test/BuildDir directory.
stevenknight [Wed, 15 Oct 2008 14:25:16 +0000 (14:25 +0000)]
Remove the old, empty test/BuildDir directory.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3692 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoSupport the -f option allowing specification of a different top-level
stevenknight [Wed, 15 Oct 2008 14:16:13 +0000 (14:16 +0000)]
Support the -f option allowing specification of a different top-level
"SConstruct" file name to search for when using the -D, -U or -u options.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3691 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix release lines (incorrect line updated in merge from checkpoint).
stevenknight [Wed, 15 Oct 2008 05:35:43 +0000 (05:35 +0000)]
Fix release lines (incorrect line updated in merge from checkpoint).

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3689 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoCollect the scripts for the three "climb up" options (-D, -U and -u)
stevenknight [Wed, 15 Oct 2008 00:28:04 +0000 (00:28 +0000)]
Collect the scripts for the three "climb up" options (-D, -U and -u)
in a subdirectory.  Split sub-tests into separate scripts.  Clean things
up a bit.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3684 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoTest and document the ability to specify multiple -f files.
stevenknight [Tue, 14 Oct 2008 23:06:36 +0000 (23:06 +0000)]
Test and document the ability to specify multiple -f files.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3683 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoDon't use the Exception.message attribute that was deprecated in
stevenknight [Sun, 12 Oct 2008 04:31:07 +0000 (04:31 +0000)]
Don't use the Exception.message attribute that was deprecated in
Python 2.6; just str() the exception instead.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3679 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoPython 2.6 portability: add __{add,radd}__() methods to the CLVar
stevenknight [Sun, 12 Oct 2008 04:28:06 +0000 (04:28 +0000)]
Python 2.6 portability:  add __{add,radd}__() methods to the CLVar
class used for testing.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3678 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoDon't use "as" as a variable name--reserved in Python 2.6.
stevenknight [Sun, 12 Oct 2008 03:54:23 +0000 (03:54 +0000)]
Don't use "as" as a variable name--reserved in Python 2.6.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3677 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix intended tuple syntax (for Python 2.2 and before).
stevenknight [Sun, 12 Oct 2008 00:27:30 +0000 (00:27 +0000)]
Fix intended tuple syntax (for Python 2.2 and before).

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3676 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoPython 2.6 made "as" a keyword, so test the importability of the
stevenknight [Sat, 11 Oct 2008 13:35:01 +0000 (13:35 +0000)]
Python 2.6 made "as" a keyword, so test the importability of the
Tool.as module indirectly, not with a direct import statement.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3673 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix our SCons.Util.CLVar implementation (__add__() and __radd__()
stevenknight [Sat, 11 Oct 2008 13:32:37 +0000 (13:32 +0000)]
Fix our SCons.Util.CLVar implementation (__add__() and __radd__()
methods) so env.{Ap,Pre}pend() work under Python 2.6 when appending
strings to $*FLAGS variables.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3672 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdate tigris.org for the 1.1.0 release.
stevenknight [Sat, 11 Oct 2008 13:15:47 +0000 (13:15 +0000)]
Update tigris.org for the 1.1.0 release.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3670 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoMerged revisions 3378-3423,3425-3532,3534-3599,3601-3610 via svnmerge from
stevenknight [Fri, 10 Oct 2008 16:28:25 +0000 (16:28 +0000)]
Merged revisions 3378-3423,3425-3532,3534-3599,3601-3610 via svnmerge from
http://scons.tigris.org/svn/scons/checkpoint

................
  r3425 | stevenknight | 2008-09-15 11:21:57 -0700 (Mon, 15 Sep 2008) | 2 lines

  Update version and dates for the 20080915 checkpoint release.
................
  r3534 | stevenknight | 2008-10-01 23:20:52 -0700 (Wed, 01 Oct 2008) | 2 lines

  Update for 1.1 release candidate checkpoint.
................
  r3610 | stevenknight | 2008-10-10 09:25:52 -0700 (Fri, 10 Oct 2008) | 9 lines

  Merged revisions 3377-3600,3602-3609 via svnmerge from
  http://scons.tigris.org/svn/scons/release

  ........
    r3603 | stevenknight | 2008-10-10 05:42:04 -0700 (Fri, 10 Oct 2008) | 2 lines

    Updates for the 1.1.0 release.
  ........
................

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3611 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoDon't add an action to use epstopdf to build .pdf from .ps
managan [Fri, 10 Oct 2008 15:53:23 +0000 (15:53 +0000)]
Don't add an action to use epstopdf to build .pdf from .ps
This is already an action in gs.py

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3608 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoTesting on a Mac turned up a problem that did not show up on linux.
managan [Wed, 8 Oct 2008 16:30:07 +0000 (16:30 +0000)]
Testing on a Mac turned up a problem that did not show up on linux.
SK and I agree that we are surprised by that.

Both bld = env['BUILDERS']['PDF'] and bld = env['BUILDERS']['DVI'] had
lines like
bld.add_action('.tex', LaTeXAuxAction)  # for DVI
bld.add_action('.tex', PDFLaTeXAuxAction) # for PDF
run from the initialization of two tools. This was a BAD thing.

That cured some test failures. For the rest I made all the TEX tests
initialize the environment with the os.environ PATH since the check
for the existence of the tools with where_is that looks on the system path.

So the tests still quietly exit if the tool is not on the system path
and now find if it is in a non-standard location like I have.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3599 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agofix bug in SCons.Action._subproc
GregNoel [Wed, 8 Oct 2008 11:01:02 +0000 (11:01 +0000)]
fix bug in SCons.Action._subproc

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3598 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoPython 1.5 compatibility.
stevenknight [Wed, 8 Oct 2008 01:10:58 +0000 (01:10 +0000)]
Python 1.5 compatibility.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3595 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdate test scripts with more information must_*() methods.
stevenknight [Wed, 8 Oct 2008 00:58:12 +0000 (00:58 +0000)]
Update test scripts with more information must_*() methods.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3594 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoReset the default Verbose value to False.
stevenknight [Tue, 7 Oct 2008 21:34:59 +0000 (21:34 +0000)]
Reset the default Verbose value to False.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3593 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agotest/TEX/PDF_single_source.py
managan [Tue, 7 Oct 2008 18:39:19 +0000 (18:39 +0000)]
test/TEX/PDF_single_source.py
Test of generating several .pdfs from a list of .ps (new single_source setting)

test/TEX/LATEX2.py
Based on second half of LATEX. generate all .pdf's at once by giving a list of .tex files
test of single_source

src/engine/SCons/Scanner/LaTeX.py
Add test of changing an included file.
Add test of included file having no extension

src/engine/SCons/Scanner/LaTeX.py
Add lists of acceptable graphics extensions,
In the furture make this user configurable??

Scan for files in the paths stored in env['TEXINPUTS'] and env['ENV']['TEXINPUTS']
for people who may just input their environment...
Add function findENVPatDirs for this purpose

src/engine/SCons/Tool/pdf.py
add epstopdf action
Have to add it after the pdftex action so it is not the default.
Make builder single_source since each input produces one output

src/engine/SCons/Tool/pdftex.py
use tex_eps_emitter
call pdf.generate2 to add epstopdf action after the PDFLaTeXAction

src/engine/SCons/Tool/dvipdf.py
simplify coding that adds the source directory to the search path TEXPICTS

src/engine/SCons/Tool/dvips.py
Add single_source option since each ps file comes from one dvi file

src/engine/SCons/Tool/pdflatex.py
add .tex as a valid extension and switch emitters to tex_pdf_emitter

src/engine/SCons/Tool/tex.py
fix regular expressions ^[^%]* to ^[^%\n]* for multiline environment
add REs for \input or \include and \includegraphics

get graphics extensions from Scanner.LaTeX so they are defined in one place

move modify_env_var to Scanner.LaTeX since it is used there and easier to import it here

add FindFile routine to find a file given name, list of suffixes, paths, env
    returns a node for the file.

add tex_eps_emitter and tex_pdf_emitter that call a core routine with
a different list of graphics extensions that can be handled by the
tool used (latex vs. pdflatex)

revamp feature test/suffix list into two lists and build the list used
to create sideeffects for each input file...
These tests now get applied to each included file so the whole source
tree is tested.

Get list of paths from env['ENV']['TEXINPUTS'] and env['TEXINPUTS']
if find we need a .pdf file and only have .eps or .ps set up the
.pdf as a target with the .eps as source...

change emitter to tex_eps_emitter

src/engine/SCons/Tool/latex.py
add .tex as a valid extension and switch emitters to tex_eps_emitter

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3592 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix label placement in gnuplot graphs by the "scons-time.py func"
stevenknight [Tue, 7 Oct 2008 04:52:38 +0000 (04:52 +0000)]
Fix label placement in gnuplot graphs by the "scons-time.py func"
subcommand when a profile result is equal to (or near) 0.0.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3572 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoInitial Python 2.6 portability in SCons code itself, using subprocess
stevenknight [Tue, 7 Oct 2008 00:40:11 +0000 (00:40 +0000)]
Initial Python 2.6 portability in SCons code itself, using subprocess
in place of popen2, and calling hashlib.md5() instead of the md5 module.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3571 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoRudimentary Python 2.6 portability in the test infrastructure, fixing
stevenknight [Tue, 7 Oct 2008 00:39:54 +0000 (00:39 +0000)]
Rudimentary Python 2.6 portability in the test infrastructure, fixing
"import popen2" warnings that interfere with some of the tests executing
cleanly.  This converts to using subprocess by default, falling back
to popen2 if it's not available.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3570 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoRemove left-over debug print.
stevenknight [Tue, 7 Oct 2008 00:39:42 +0000 (00:39 +0000)]
Remove left-over debug print.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3569 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix a block in Script/Main.py that could swallow KeyboardInterrupt
stevenknight [Sun, 5 Oct 2008 13:42:01 +0000 (13:42 +0000)]
Fix a block in Script/Main.py that could swallow KeyboardInterrupt
exceptions.  Fix the script that analyzes our try:-except: block so it
recognizes that "except Exception, e:" is equivalent to "except:".

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3552 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agodocumentation changes for Action() refactoring
GregNoel [Sat, 4 Oct 2008 15:37:28 +0000 (15:37 +0000)]
documentation changes for Action() refactoring

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3551 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 2166, refactor Action() factory to make positional parameters consistent
GregNoel [Sat, 4 Oct 2008 15:35:57 +0000 (15:35 +0000)]
Issue 2166, refactor Action() factory to make positional parameters consistent

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3550 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix small inefficiency in jobs dispatching
GregNoel [Sat, 4 Oct 2008 15:35:50 +0000 (15:35 +0000)]
Fix small inefficiency in jobs dispatching

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3549 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdates to SCons development system admin scripts:
stevenknight [Sat, 4 Oct 2008 00:26:11 +0000 (00:26 +0000)]
Updates to SCons development system admin scripts:
* Add Python 2.6.
* Add recent SCons versions.
* Add pkg-config (used to generate some doc examples).

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3548 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUser's Guide updates:
stevenknight [Fri, 3 Oct 2008 23:06:51 +0000 (23:06 +0000)]
User's Guide updates:
Mostly MSVC compilation lines so the /Fo is at the beginning of the
output line.  Also some new/modified variables in the environment dump
in the Troubleshooting appendix, and removing a leftover XXX todo comment.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3547 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdate highlight and roadmap schedule.
stevenknight [Fri, 3 Oct 2008 05:52:00 +0000 (05:52 +0000)]
Update highlight and roadmap schedule.
Add a comment about how to generate the roadmap table from the
"schedule" input file.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3537 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoCorrect typos to roadmap.html that snuck in...
GregNoel [Thu, 2 Oct 2008 03:05:31 +0000 (03:05 +0000)]
Correct typos to roadmap.html that snuck in...

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3531 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoMove release days to Monday; slip 1.1 (but not rest); typos
GregNoel [Thu, 2 Oct 2008 02:56:17 +0000 (02:56 +0000)]
Move release days to Monday; slip 1.1 (but not rest); typos

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3530 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoimplement delete_existing for AppendUnique and PrependUnique. Finishes #2091.
garyo [Thu, 2 Oct 2008 02:17:58 +0000 (02:17 +0000)]
implement delete_existing for AppendUnique and PrependUnique.  Finishes #2091.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3529 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoAdd Users Guide example of using $SOURCE substitution in a target name in a Command...
garyo [Thu, 2 Oct 2008 01:43:53 +0000 (01:43 +0000)]
Add Users Guide example of using $SOURCE substitution in a target name in a Command builder.  Just doc.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3528 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoPython 2.2 portability: no dictionary pop() method.
stevenknight [Wed, 1 Oct 2008 14:58:22 +0000 (14:58 +0000)]
Python 2.2 portability:  no dictionary pop() method.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3527 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdate for latest changes.
stevenknight [Wed, 1 Oct 2008 11:02:29 +0000 (11:02 +0000)]
Update for latest changes.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3526 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix the regular expression for LaTeX scanning so that it matches
stevenknight [Wed, 1 Oct 2008 11:02:08 +0000 (11:02 +0000)]
Fix the regular expression for LaTeX scanning so that it matches
\include (and other inclusion strings) after blank lines.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3525 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoAdd ability to use "$SOURCE" when specifying a target to a builder; fixes #2219.
garyo [Wed, 1 Oct 2008 02:47:36 +0000 (02:47 +0000)]
Add ability to use "$SOURCE" when specifying a target to a builder; fixes #2219.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3524 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoThis patch removes setting the variable TEXPICTS in the tex tools and
managan [Tue, 30 Sep 2008 22:54:35 +0000 (22:54 +0000)]
This patch removes setting the variable TEXPICTS in the tex tools and
sets it in tee dvi2ps and dvipdf tools where it is needed. This means that we
can reset it to the original value at the end of the tool.

This is done by storing the .tex source file's path in the
.dvi file's Node .attribute slot and retrieving it in the dvi2ps and dvipdf
tools from the source.

I also updated the list of graphics extensions in the Latex scanner

I set up one function that gets called to run either dvi2ps or dvipdf
after setting TEXPICTS.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3523 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoBetter error when taskmaster gets an exception while scanning children (show actual...
garyo [Mon, 29 Sep 2008 21:46:49 +0000 (21:46 +0000)]
Better error when taskmaster gets an exception while scanning children (show actual exception string).

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3520 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix test to work with all versions of Python
GregNoel [Mon, 29 Sep 2008 08:13:07 +0000 (08:13 +0000)]
Fix test to work with all versions of Python

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3515 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 1646: Block-wise signature computation for large files
pankrat [Sun, 28 Sep 2008 13:04:03 +0000 (13:04 +0000)]
Issue 1646: Block-wise signature computation for large files

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3514 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix scons-local packaging test breakage in MSVS tests by correcting
stevenknight [Sat, 27 Sep 2008 14:28:11 +0000 (14:28 +0000)]
Fix scons-local packaging test breakage in MSVS tests by correcting
the spelling of TestSCons._scons_version to TestSCons.scons_version.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3492 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoRevert checkin of incomplete change
GregNoel [Fri, 26 Sep 2008 18:48:37 +0000 (18:48 +0000)]
Revert checkin of incomplete change

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3491 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoreassign credit where credit is due
GregNoel [Fri, 26 Sep 2008 18:31:20 +0000 (18:31 +0000)]
reassign credit where credit is due

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3490 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdate with recent changes:
stevenknight [Fri, 26 Sep 2008 16:16:07 +0000 (16:16 +0000)]
Update with recent changes:
* Scan .rc files.
* Big TeX changes.
* .sx file suffix.
* delete_existing keyword argument.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3489 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoAdd RC.py scanner to MANIFEST.in
cournape [Fri, 26 Sep 2008 06:21:17 +0000 (06:21 +0000)]
Add RC.py scanner to MANIFEST.in

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3484 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFixed an issue with the way the test was setting up the CPPPATH.
bdbaddog [Fri, 26 Sep 2008 04:42:05 +0000 (04:42 +0000)]
Fixed an issue with the way the test was setting up the CPPPATH.
Was causing buildbot failure on centos5 buildbot.
Turns out some weird interaction with the bogus code which is replaced
below was only happening when setuptools was installed
in the python tree being used for tests.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3481 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoUpdated fix for bug 2082 adding support for D3DFX keyword and fixing python 1.5.2...
bdbaddog [Fri, 26 Sep 2008 01:52:56 +0000 (01:52 +0000)]
Updated fix for bug 2082 adding support for D3DFX keyword and fixing python 1.5.2 issue

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3480 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoSort the results of unittest for RC scanner before comparing them.
bdbaddog [Thu, 25 Sep 2008 21:30:54 +0000 (21:30 +0000)]
Sort the results of unittest for RC scanner before comparing them.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3479 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix for previous fix for 402 and 2082
bdbaddog [Thu, 25 Sep 2008 21:05:24 +0000 (21:05 +0000)]
Fix for previous fix for 402 and 2082

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3478 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix __COPYRIGHT__ and __revision__ lines.
stevenknight [Thu, 25 Sep 2008 20:43:06 +0000 (20:43 +0000)]
Fix __COPYRIGHT__ and __revision__ lines.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3477 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoMake a naked except: block catch specific exceptions (and not
stevenknight [Thu, 25 Sep 2008 20:42:02 +0000 (20:42 +0000)]
Make a naked except: block catch specific exceptions (and not
swallow a KeyboardInterrupt at the wrong time).

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3476 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoFix for bugs 402 and 2082 - implement scanner for windows resource files.
bdbaddog [Thu, 25 Sep 2008 19:44:49 +0000 (19:44 +0000)]
Fix for bugs 402 and 2082 - implement scanner for windows resource files.
Basic unittest included

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3475 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 2183, fix typos
GregNoel [Thu, 25 Sep 2008 18:35:12 +0000 (18:35 +0000)]
Issue 2183, fix typos

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3474 fdb21ef1-2011-0410-befe-b5e4ea1792b1

15 years agoIssue 2183: .sx assembler suffix uses C preprocessor
GregNoel [Thu, 25 Sep 2008 09:31:12 +0000 (09:31 +0000)]
Issue 2183: .sx assembler suffix uses C preprocessor

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3473 fdb21ef1-2011-0410-befe-b5e4ea1792b1