Greg Ward
6b24dffd13
Catch syntax errors from processing template lines and turn them into
...
mere warnings.
Call 'findall()' on our FileList object before we start using it seriously.
2000-07-30 01:47:16 +00:00
Greg Ward
979db976a3
Added list-like methods: 'append()', 'extend()', 'sort()'.
...
Added 'remove_duplicates()'.
Simplified constructor: no longer take 'files' or 'allfiles' as args,
and no longer have 'dir' attribute at all.
Added 'set_allfiles()' and 'findall()' so the client does have a
way to set the list of all files.
Changed 'include_pattern()' to use the 'findall()' method instead of
the external function. (Of course, the method is just a trivial
wrapper around the function.)
2000-07-30 01:45:42 +00:00
Greg Ward
23266fe5cf
Replaced 'self.files' with 'self.filelist': now we carry around a FileList
...
instance instead of a list of filenames. Simplifies the "sdist" command
only a bit, but should allow greater simplification of FileList.
2000-07-30 01:30:31 +00:00
Greg Ward
4571ac15f7
The other half of Rene Liebscher's patch to add the Template class,
...
which I renamed to FileList: remove all the file-list-generation code from
the sdist command and adapt it to use the new FileList class instead.
2000-07-30 01:05:02 +00:00
Greg Ward
d5dcc174b0
Typo fix.
2000-07-30 01:04:22 +00:00
Greg Ward
58bff53320
Added DistutilsTemplateError.
2000-07-30 01:03:31 +00:00
Greg Ward
c019e2c7a8
Ditched the unused 'recursive_exclude_pattern()' method.
2000-07-30 00:37:04 +00:00
Greg Ward
0f341855ac
Renamed 'select_pattern()' to 'include_pattern()'.
...
Other cosmetic/doc/comment tweaks.
2000-07-30 00:36:25 +00:00
Greg Ward
7b3d56c85c
Renamed 'process_line()' to 'process_template_line()', and factored out
...
'_parse_template_line()'.
2000-07-30 00:21:36 +00:00
Greg Ward
c98927a059
Added class docstring and ditched inappropriate class attrs.
...
Indentation/whitspace fixes.
2000-07-30 00:08:13 +00:00
Greg Ward
adc1172064
Provides the FileList class for building a list of filenames by exploring
...
the filesystem, and filtering the list by applying various patterns.
Initial revision (almost) as supplied in a patch by Rene Liebscher; I
just renamed the class from Template to FileList, and the module
accordingly.
2000-07-30 00:04:17 +00:00
Greg Ward
ae0965eb23
Bump version to 0.9.1pre.
2000-07-27 02:17:40 +00:00
Greg Ward
612eb9f58f
Fixed a grab-bag of typos spotted by Rob Hooft.
2000-07-27 02:13:20 +00:00
Greg Ward
aa5372caa7
Remove unused 'search_dir()' method.
...
Comment tweak.
2000-07-27 01:58:45 +00:00
Greg Ward
7499847c53
Fix to call 'library_filename()' instead of the non-existent
...
'shared_library_filename()'.
2000-07-27 01:23:19 +00:00
Greg Ward
53c1bc3f9b
Typo fix from David Ascher.
2000-07-27 01:21:54 +00:00
Andrew M. Kuchling
23adc9f37b
Typo fix from Bastian Kleineidam
2000-07-14 13:35:07 +00:00
Jeremy Hylton
65d6edb478
fix inconsistent use of tabs and spaces
2000-07-07 20:45:21 +00:00
Greg Ward
fd9f168bcf
Fixed so the ZIP file (which is bundled into an executable) goes in the
...
temporary directory ('bdist_base').
Added --dist-dir option to control where the executable is put.
2000-07-05 03:08:55 +00:00
Greg Ward
c4eb84accb
Added --dist-dir option to control where output archive(s) go.
2000-07-05 03:07:37 +00:00
Greg Ward
040dc0b691
Added the --dist-dir option that the "bdist_*" will use to control where
...
they place their output files.
2000-07-05 03:07:18 +00:00
Greg Ward
c0614105aa
Added the --dist-dir option to control where the archive(s) are put;
...
defaults to 'dist' (ie. no longer in the distribution root).
2000-07-05 03:06:46 +00:00
Greg Ward
1b5ec76190
Simplify the registry-module-finding code: _winreg or win32api/win32con.
...
This'll work fine with 2.0 or 1.5.2, but is less than ideal for
1.6a1/a2. But the code to accomodate 1.6a1/a2 was released with
Distutils 0.9, so it can go away now.
2000-06-30 19:37:59 +00:00
Greg Ward
0e8c518a62
Bump version to 0.9.
2000-06-30 02:54:36 +00:00
Greg Ward
5d6ae76c09
Allow 2.0 on the list of target versions. NB. this isn't enough: the GUI part,
...
misc/install.c, still needs to be updated, and it looks like a non-trivial
change.
2000-06-29 23:50:19 +00:00
Greg Ward
22e1bf7da5
Don't try to guess the name of a .def file -- if one is supplied, use it,
...
otherwise just generate an '/export:' option.
2000-06-29 23:09:20 +00:00
Greg Ward
83c3870e2b
On second thought, first try for _winreg, and then winreg. Only if both
...
fail do we try for win32api/win32con. If *those* both fail, then we don't
have registry access. Phew!
2000-06-29 23:04:59 +00:00
Greg Ward
cd079c4c28
Changed to use _winreg module instead of winreg.
2000-06-29 22:59:10 +00:00
Greg Ward
f34506a3d4
Cleaned up and reformatted by Rene Liebscher.
...
More reformatting by me.
Also added some editorial comments.
2000-06-29 22:57:55 +00:00
Greg Ward
df112a76a9
Fixed so 'get_source_files()' calls 'check_extension_list()' -- that way,
...
we can run "sdist" on a distribution with old-style extension structures
even if we haven't built it yet. Bug spotted by Harry Gebel.
2000-06-29 02:16:24 +00:00
Greg Ward
499822d959
Fixed 'findall()' so it only returns regular files -- no directories.
...
Changed 'prune_file_list()' so it also prunes out RCS and CVS directories.
Added 'is_regex' parameter to 'select_pattern()', 'exclude_pattern()',
and 'translate_pattern()', so that you don't have to be constrained
by the simple shell-glob-like pattern language, and can escape into
full-blown regexes when needed. Currently this is only available
in code -- it's not exposed in the manifest template mini-language.
Added 'prune' option (controlled by --prune and --no-prune) to determine
whether we call 'prune_file_list()' or not -- it's true by default.
Fixed 'negative_opt' -- it was misnamed and not being seen by dist.py.
Added --no-defaults to the option table, so it's seen by FancyGetopt.
2000-06-29 02:06:29 +00:00
Jeremy Hylton
a05e293a21
typos fixed by Rob Hooft
2000-06-28 14:48:01 +00:00
Greg Ward
cc623a2574
Lyle Johnson: pass in temp directory as 'build_temp' argument when calling
...
'link_shared_object()'.
2000-06-28 01:29:37 +00:00
Greg Ward
bfc79d644a
Lyle Johnson: added 'build_temp' parameter to 'link_shared_{lib,object}()'
...
methods (but not 'link_executable()', hmmm). Currently only used by
BCPPCompiler; it's a dummy parameter for UnixCCompiler and MSVCCompiler.
Also added 'bcpp' to compiler table used by 'new_compiler()'.
2000-06-28 01:29:09 +00:00
Greg Ward
7d9c705b23
Typo fix.
2000-06-28 01:25:27 +00:00
Greg Ward
fe9b818b7d
Lyle Johnson's interface to Borland C++, with a few editorial comments by me.
...
Two major points:
* lots of overlap with MSVCCompiler; the common code really should be
factored out into a base class, say WindowsCCompiler
* it doesn't work: weird problem spawning the linker (see comment for
details)
2000-06-28 01:20:35 +00:00
Greg Ward
b0b98a5ee5
Fixed to use 'reinitialize_command()' to fetch "install" and "install_lib"
...
command objects.
Various formatting tweaks, typo fixes in comments.
2000-06-28 00:56:20 +00:00
Greg Ward
edc6a519dc
Fixed to use 'reinitialize_command()' to fetch the "install" command object.
2000-06-28 00:36:40 +00:00
Greg Ward
b231e1ae18
Oops, only do that AIX hack on AIX.
2000-06-27 01:59:43 +00:00
Greg Ward
4f880280c2
Fixed LDSHARED for AIX, based on a patch by Rene Liebscher.
...
Ditched my old code that fixed relative paths in the Makefile -- didn't work,
doomed to failure, etc.
2000-06-27 01:59:06 +00:00
Greg Ward
b593793fce
A-ha! Read Thomas' patch a little more carefully and figured it out:
...
the 'implib_dir' attribute is back (only on NT, of course).
2000-06-27 01:43:24 +00:00
Greg Ward
f3bd747c4e
Thomas Heller: added --swig-cpp option and fixed silly typos in SWIG support.
...
Also supposedly made some change to where .lib files wind up under MSVC++,
but I don't understand how to code is doing what Thomas says it's
doing.
2000-06-27 01:37:10 +00:00
Greg Ward
27199e8029
Thomas Heller's "bdist_wininst" command (unreviewed, untested).
2000-06-27 01:24:38 +00:00
Greg Ward
1f9b73b575
Infrastructure support for the "bdist_wininst" command.
2000-06-27 01:24:07 +00:00
Greg Ward
855dab9987
Added 'include_dirs' parameters all over the place.
...
Added 'check_lib()', which provides a subset of the functionality of
'check_func()' with a simpler interface and implementation.
2000-06-27 01:21:22 +00:00
Greg Ward
992c8f9dab
Define the 'executables' class attribute so the CCompiler constructor
...
doesn't blow up. We don't currently use the 'set_executables()' bureaucracy,
although it would be nice to do so for consistency with UnixCCompiler.
2000-06-25 02:31:16 +00:00
Greg Ward
e401e15d18
Removed some debugging code that slipped into the last checkin.
...
Ensure that 'extra_args' (whether compile or link args) is never None.
2000-06-25 02:30:15 +00:00
Greg Ward
f46a688e84
Fixed the "pre-link hook" so it actually works, mainly by renaming it
...
to 'msvc_prelink_hack()', adding the parameters that it actually needs,
and only calling it for MSVC compiler objects. Generally gave up on the
idea of a general "hook" mechanism: deleted the empty 'precompile_hook()'.
2000-06-25 02:23:11 +00:00
Greg Ward
68ff615c79
Added PreprocessError and UnknownFileError (both used by CCompiler).
2000-06-25 02:12:14 +00:00
Greg Ward
eab969d700
Call 'customize_compiler()' after getting CCompiler object.
2000-06-25 02:10:58 +00:00