0e637711e6908dabf62435ca22ae8805815b59f1
[scons.git] / src / RELEASE.txt
1 # __COPYRIGHT__
2 # __FILE__ __REVISION__ __DATE__ __DEVELOPER__
3
4
5                  SCons - a software construction tool
6
7                             Release Notes
8
9
10 This is a beta release of SCons, a tool for building software (and other
11 files).  SCons is implemented in Python, and its "configuration files"
12 are actually Python scripts, allowing you to use the full power of a
13 real scripting language to solve build problems.  You do not, however,
14 need to know Python to use SCons effectively.
15
16 So that everyone using SCons can help each other learn how to use it
17 more effectively, please sign up for the scons-users mailing list at:
18
19     http://lists.sourceforge.net/lists/listinfo/scons-users
20
21
22
23 RELEASE 0.96 - XXX
24
25   This is the seventh beta release of SCons.  Please consult the
26   CHANGES.txt file for a list of specific changes since last release.
27
28   Please note the following important changes since release 0.95:
29
30     - All Builder calls (both built-in like Program(), Library(),
31       etc. and customer Builders) now always return a list of target
32       Nodes.   If the Builder only builds one target, the Builder
33       call will now return a list containing that target Node, not
34       the target Node itself as it used to do.
35
36       This change should be invisibile to most normal uses of the
37       return values from Builder calls.  It will cause an error if the
38       SConscript file was performing some direct manipulation of the
39       returned Node value.  For example, an attempt to print the name
40       of a target returned by the Object() Builder:
41
42             target = Object('foo.c')
43             # OLD WAY
44             print target
45
46       Will now need to access the first element in the list returned by
47       the Object() call:
48
49             target = Object('foo.c')
50             # NEW AY
51             print target[0]
52
53       This change was introduced to make the data type returned by Builder
54       calls consistent (always a list), regardless of platform or number
55       of returned targets.
56
57     - The SConsignFile() function now uses an internally-supplied
58       SCons.dblite module as the default DB scheme for the .sconsign file.
59       If you are using the SConsignFile() function without an explicitly
60       specified dbm_module argument, this will cause all of your targets
61       to be recompiled the first time you use SCons 0.96.  To preserve the
62       previous behavior, specify the "anydbm" module explicitly:
63
64           import anydbm
65           SConsignFile('.sconsign_file_name', anydbm)
66
67     - The internal format of .sconsign files has been changed.  This might
68       cause warnings about "ignoring corrupt .sconsign files" and rebuilds
69       when you use SCons 0.96 for the first time in a tree that was
70       previously built with SCons 0.95 or earlier.
71
72     - The scan_check function that can be supplied to a custom Scanner now
73       must take two arguments, the Node to be checked and a construction
74       environment.  It previously only used the Node as an argument.
75
76     - The internal Scanner.add_skey() method no longer works for the
77       default scanners, which now use construction variables to hold their
78       lists of suffixes.  If you had a custom Tool specification that was
79       reaching into the internals in this way to add a suffix to one of
80       the following scanner, you must now add the suffix to a construction
81       environment through which you plan to call the scanner, as follows:
82
83           CScan.add_skey('.x')       => env.Append(CPPSUFFIXES = ['.x'])
84           DScan.add_skey('.x')       => env.Append(DSUFFIXES = ['.x'])
85           FortranScan.add_skey('.x') => env.Append(FORTRANSUFFIXES = ['.x'])
86
87     - The internal "node_factory" keyword argument has been removed;
88       the separate and more flexible "target_factory" and "source_factory"
89       keywords should be used instead.
90
91     - SCons now treats file "extensions" that contain all digits (for
92       example, "file.123") as part of the file basename, for easier
93       handling of version numbers in the names of shared libraries
94       and other files.  Builders will now add their file extensions to
95       file names specified with all-digit extensions.  If you need to
96       generate a file with an all-digit extension using a Builder that
97       adds a file extension, you can preserve the previous behavior by
98       wrapping the file name in a File() call.
99
100     - The behavior of the env.Append() and env.Prepend() methods has
101       changed when appending a string value to a UserList, or vice versa.
102       They now behave like normal Python addition of a string to
103       a UserList.  Given an initialization and an env.Append() call like:
104
105           env = Environment(VAR1=UserList(['foo']), VAR2='foo')
106           env.Append(VAR1='bar', VAR2=UserList(['bar'])
107
108       The resulting values of $VAR1 and $VAR2 will now be ['foo', 'b',
109       'a', 'r'] and ['f', 'o', 'o', 'bar'], respectively.  This is because
110       Python UserList objects treat strings as sequences of letters when
111       adding them to the value of the UserList.
112
113       The old behavior of yielding $VAR1 and $VAR2 values of ['foo',
114       'bar'] when either variable is a UserList object now requires that
115       the string variables be enclosed in a list:
116
117           env = Environment(VAR1=UserList(['foo']), VAR2=['foo'])
118           env.Append(VAR1='bar', VAR2=UserList(['bar']))
119
120       Note that the SCons behavior when appending to normal lists has
121       *not* changed, and the behavior of all of the default values that
122       SCons uses to initialize all construction variables has *not*
123       changed.  This change *only* affects any cases where you explicitly
124       use UserList objects to initialize or append to a variable.
125
126   Please note the following important changes since release 0.94:
127
128     - The internal Python function used by the Zip Builder in Python
129       releases 1.6 or later now compresses the resulting .zip file
130       by default.  The old behavior of creating an uncompressed file
131       may be preserved by setting the new ZIPCOMPRESSION construction
132       variable to 0 (or zipfile.ZIP_STORED, if you import the
133       underlying zipfile module).
134
135     - The "overrides" keyword argument to calls to the Builder() function
136       used to create new Builder objects has been deprecated and will
137       be removed in a future release.  The items in an "overrides"
138       dictionary should now be specified as keyword arguments:
139
140           # Old way, "overrides" is a dictionary:
141           Builder(action = 'cp $TDIR/$TARGET $SDIR/$SOURCE',
142                   overrides = {'TDIR' : dir1, 'SDIR' : dir2})
143
144           # New way, items are specified as keyword arguments:
145           Builder(action = 'cp $TDIR/$TARGET $SDIR/$SOURCE',
146                   TDIR = dir1, SDIR = dir2)
147
148     - The meaning of some of the values of the "mode" argument to
149       the SCons.Util.scons_subst() and SCons.Util.scons_subst_list()
150       functions have been swapped.  The wrapper Environment.subst() and
151       Environment.subst_list() methods remain completely unchanged, so
152       this should have no external effect.  (We've listed the change here
153       because it might cause a problem if you're reaching into the SCons
154       internals and calling either of these SCons.Util functions directly.)
155
156   Please note the following FUTURE changes that you may wish to prepare
157   for:
158
159     - When compiling with Microsoft Visual Studio, SCons currently adds
160       the ATL and MFC directories to the INCLUDE and LIB environment
161       variables by default.  This default behavior will be changed in
162       a future release; the current plan is to change it for the 0.97
163       release (next release).
164
165       Whether or not the ATL and MFC directories are added to these
166       environment variables is now controlled by a new MSVS_USE_MFC_DIRS
167       *construction* variable.  Setting this variable to a non-zero
168       value when you initialize an Environment will ensure that these
169       directories will be included in your external path(s) even when
170       the default behavior changes:
171
172           env = Environment(MSVS_USE_MFC_DIRS = 1)
173
174       The MSVS_USE_MFC_DIRS variable may, of course, be set to 0 (or
175       None) to prevent SCons from adding the ATL and MFC directories to
176       the INCLUDE and LIB environment variables.
177
178   SCons is developed with an extensive regression test suite, and a
179   rigorous development methodology for continually improving that suite.
180   Because of this, SCons is of sufficient quality that you can use it
181   for real work.  The "beta" status of the release reflects that we
182   still may change interfaces in future releases, which may require
183   modifications to your SConscript files.  We strive to hold these
184   changes to a minimum.
185
186   Nevertheless, please heed the following disclaimers:
187
188     - Please report any bugs or other problems that you find to our bug
189       tracker at our SourceForge project page:
190
191       http://sourceforge.net/tracker/?func=add&group_id=30337&atid=398971
192
193       We have a reliable bug-fixing methodology already in place and
194       strive to respond to problems relatively quickly.
195
196     - Documentation is spottier than we'd like.  You may need to dive
197       into the source code to figure out how to do something.  Asking
198       questions on the scons-users mailing list is also welcome.  We
199       will be addressing the documentation in upcoming releases, but
200       would be more than glad to have your assistance in correcting this
201       problem... :-)
202
203       In particular, the "SCons Design" documentation on the SCons web
204       site is currently out of date, as we made significant changes to
205       portions of the interface as we figured out what worked and what
206       didn't during implementation.
207
208     - There may be performance issues.  Improving SCons performance
209       is an ongoing priority.  If you still find the performance
210       unacceptable, we would very much like to hear from you and learn
211       more about your configuration so we can optimize the right things.
212
213     - Error messages don't always exist where they'd be helpful.
214       Please let us know about any errors you ran into that would
215       have benefitted from a (more) descriptive message.
216
217   KNOWN PROBLEMS IN THIS RELEASE:
218
219     For a complete list of known problems, consult the SCons bug tracker
220     page at SourceForge:
221
222         http://sourceforge.net/tracker/?atid=398971&group_id=30337&func=browse
223
224     - Support for parallel builds (-j) does not work on WIN32 systems
225       prior to *official* Python release 2.2 (not 2.2 pre-releases).
226
227       Prior to Python 2.2, there is a bug in Python's Win32
228       implementation such that when a thread spawns an external command,
229       it blocks all threads from running.  This breaks the SCons
230       multithreading architecture used to support -j builds.
231
232       We have included a patch file, os_spawnv_fix.diff, that you can
233       use if you you want to fix your version of Python to support
234       parallel builds in SCons.
235
236     - Again, the "SCons Design" documentation on the SCons web
237       site is currently out of date.  Take what you read there with a
238       grain of salt.
239
240     - If a file is specified to be built in multiple ways, the last
241       processed builder specification overwrites all other builders,
242       without any warning.
243
244     - On Win32 systems, you must put a space between the redirection
245       characters < and >, and the specified files (or construction
246       variable expansions):
247
248         command < $SOURCE > $TARGET
249
250       If you don't supply a space (for example, "<$SOURCE"), SCons will
251       not recognize the redirection.
252
253     - People have reported problems with SCons not stopping a build when
254       an interrupt (CTRL+C) is received.  A fix was checked in to 0.11
255       that should fix this behavior on many systems, but there are
256       issues with the underlying Python os.system() call that suggest
257       this fix does not work on all systems or in all circumstances.
258       We're working to try to find a universal solution.
259
260     - Modifying a construction environment in a subsidiary SConscript
261       file modifies the global environment.
262
263     - MSVC .res files are not rebuilt when icons change.
264
265     - The -c option does not clean up .sconsign files or directories
266       created as part of the build, and also does not clean up
267       SideEffect files (for example, Visual Studio .pdb files).
268
269     - Switching content signatures from "MD5" to "timestamp" and back
270       again can cause unusual errors.  These errors can be cleared up by
271       removing all .sconsign files.
272
273     - When using multiple Repositories, changing the name of an include
274       file can cause an old version of the file to be used.
275
276     - There is currently no way to force use of a relative path (../*)
277       for directories outside the top-level SConstruct file.
278
279     - The Jar() Builder will, on its second or subsequent invocation,
280       package up the .sconsign files that SCons uses to track signatures.
281       You can work around this by using the SConsignFile() function
282       to collect all of the .sconsign information into a single file
283       outside of the directory being packaged by Jar().
284
285     - SCons does not currently have a way to detect that an intermediate
286       file has been corrupted from outside and should be rebuilt.
287
288     - Unicode characters in path names do not work in all circumstances.
289
290     - A stray source file in a BuildDir can prevent targets from being
291       (re)built when they should.
292
293     - SCons does not automatically rebuild LaTeX files when the file
294       has an undefined reference on the first build.
295
296     - SideEffect() files are not retrieved properly from a CacheDir(),
297       and can lead to a stack trace.
298
299     - Use of --implicit-cache with TargetSignatures('content') can,
300       for some changes, not rebuild a file when necessary.
301
302     - SCons does not currently automatically check out SConstruct or
303       SConscript files from SCCS, RCS or BitKeeper.
304
305     - The Command() global function (specified without a construction
306       environment) is broken.
307
308     - No support yet for the following planned command-line options:
309
310          -d -e -l --list-actions --list-derived --list-where
311          -o --override -p -r -R -w --write-filenames
312          -W --warn-undefined-variables
313
314
315
316 Thank you for your interest, and please let us know how we can help
317 improve SCons for your needs.
318
319 Steven Knight
320 knight at baldmt dot com
321 http://www.baldmt.com/~knight/
322
323 With plenty of help from the SCons Development team:
324         Chad Austin
325         Charles Crain
326         Steve Leblanc
327         Gary Oberbrunner
328         Anthony Roach
329         Greg Spencer
330         Christoph Wiedemann
331