Greg Ward
889de85d8b
Bumped version to 0.9.2pre.
2000-08-26 02:37:07 +00:00
Greg Ward
d8014e6608
In 'check_extensions_list()': when converting old-style 'buildinfo' dict,
...
don't assign None to any attributes of the Extension object.
2000-08-26 02:21:55 +00:00
Greg Ward
986659fffe
Don't bother to 'mkpath()' the 'dist_dir' -- that's now taken care of
...
in archive_util.py.
2000-08-22 01:49:41 +00:00
Greg Ward
04e25a1bdf
Ensure destination directory exists before trying to create a tarball
...
or ZIP file.
2000-08-22 01:48:54 +00:00
Greg Ward
f40ff1b8b2
Bump version to 0.9.1.
2000-08-15 13:14:27 +00:00
Greg Ward
44a980dff9
Fixed the move-RPM-files hack so it knows about the '--binary-only' and
...
'--source-only' options.
2000-08-15 13:05:35 +00:00
Greg Ward
a12c195064
Added support for the '--dist-dir' option, including a mildly nasty
...
hack to find the two created RPM files (source and binary) and
move them to the "dist dir" (default "dist").
2000-08-15 13:03:16 +00:00
Greg Ward
c0fe82ca26
Fix long-hidden inconsistency in internal interface: 'find_modules()' now
...
represents packages as strings, not tuples. This allowed a simplification
in 'get_package_dir()', too -- can now assume that 'package' is a string.
2000-08-15 13:01:25 +00:00
Greg Ward
e8e9d11453
Overhauld 'check_config_h()': now returns a (status, details) tuple,
...
and is much better documented to boot.
2000-08-13 01:18:55 +00:00
Greg Ward
1398045136
Added a whinging comment about the ugliness of constructing the BCPP
...
argument list.
2000-08-13 00:54:39 +00:00
Greg Ward
b1dceae3df
Rene Liebscher:
...
* use self.debug_print() for debug messages
* uses now copy.copy() to copy lists
* added 'shared_lib_extension=".dll"', ... , this is necessary if you
want use the compiler class outside of the standard distutils build
process.
* changed result type of check_config_h() from int to string
2000-08-13 00:43:56 +00:00
Greg Ward
a4662bc1bc
Rene Liebscher:
...
* changed some list.extend([...]) to list.append(...)
* added '/g0' to compiler_options, so compiler doesn't
stop after 100 warnings
2000-08-13 00:43:16 +00:00
Greg Ward
a35c931eb2
get_export_symbols() changed, adds now module init function if not given
...
by the user.
2000-08-13 00:42:35 +00:00
Greg Ward
1f6a0d4568
Rene Liebscher: ext.export_symbols is now always a list (added 'or []').
2000-08-13 00:41:40 +00:00
Greg Ward
45b87bc96d
Typo fix in docstring.
2000-08-13 00:38:58 +00:00
Greg Ward
29124ff4f2
Fix references to functions formerly imported from 'util'.
2000-08-13 00:36:47 +00:00
Greg Ward
2b042ded19
Fix so 'split_quoted()' handles any whitespace delimiter (not just space).
2000-08-08 14:38:13 +00:00
Greg Ward
1b024d37a7
Fix so the 'install_libbase' directory -- where .pth files are installed --
...
participates in the "--root" hack, ie. it also has a new root directory
hacked on at the very last minute (essential if the .pth file is to be
included in an RPM or other smart installer!).
2000-08-07 00:48:04 +00:00
Greg Ward
0fd2dd6db0
Fix so we clear or reinitialize various data structures before populating
...
(allows the same FancyGetopt object to be used multiple times with different
option tables).
2000-08-07 00:45:51 +00:00
Greg Ward
ab3a0f36ed
Fixed imports from '*util' modules to not just import everything from util.
2000-08-05 01:31:54 +00:00
Greg Ward
5a8aa1ba2e
Drop the 'extend()' function -- old 1.5.1 compatibility hack that
...
wasn't actually used anywhere.
Drop the "from xxx_util import*" backwards compability hacks.
2000-08-05 01:25:24 +00:00
Greg Ward
f813e59d49
Added 'debug_print()'.
2000-08-04 01:31:13 +00:00
Greg Ward
5db2c3ae24
Rewrote 'find_library_file()' much more cleanly (and consistently with
...
MSVCCompiler's version, to aid in factoring common code out of the two
classes when the time comes).
2000-08-04 01:30:03 +00:00
Greg Ward
d142564821
Added 'debug' flag to 'find_library_file()', and changed code to handle it.
2000-08-04 01:29:27 +00:00
Greg Ward
e5e6015e5a
Added 'debug' flag to 'find_library_file()'.
2000-08-04 01:28:39 +00:00
Greg Ward
dc9fe8a7ba
Typo fix.
2000-08-02 01:49:40 +00:00
Greg Ward
6f628bb877
Added 'wininst' to the 'format_commands' list, so it's included in
...
the --help-formats output. Also moved that list up so it's more obvious
when adding formats.
2000-08-02 01:44:44 +00:00
Greg Ward
9dddbb4009
Added 'execute()' method, a thin wrapper around 'util.execute() (just like
...
the one in cmd.py).
2000-08-02 01:38:20 +00:00
Greg Ward
d7faa81616
Replaced 'execute()' method with a thin wrapper around 'util.execute()'.
2000-08-02 01:37:53 +00:00
Greg Ward
1c16ac360a
Added the 'execute()' function (moved here from cmd.py with minor tweakage).
2000-08-02 01:37:30 +00:00
Greg Ward
90c74cc4da
Rene Liebscher: fix 'skipping byte-compilation' message for grammatical
...
consistency.
2000-08-02 01:34:18 +00:00
Greg Ward
bf5c70973f
Latest version from Rene Liebscher; major changes:
...
- added big comment describing possible problems
- look for and react to versions of gcc, ld, and dlltool; mainly
this is done by the 'get_versions()' function and the CygwinCCompiler
and Mingw32CCompiler constructors
- move 'check_config_h()' to end of file and defer calling it until
we need to (ie. in the CygwinCCompiler constructor)
- lots of changes in 'link_shared_object()' -- mostly seems to be
library and DLL stuff, but I don't follow it entirely
2000-08-02 01:31:56 +00:00
Greg Ward
1d526dd3b3
Rene Liebscher: deleted unneeded hard-coded assignments of CC, RANLIB, etc.
...
in '_init_nt()' (they were kludges for CygwinCCompiler and no longer needed).
2000-08-02 01:09:11 +00:00
Greg Ward
88608caff2
Rene Liebscher: factor 'find_executable()' out of '_spawn_nt()'.
2000-08-02 01:08:02 +00:00
Greg Ward
c58c517741
Patch from Rene Liebscher. Some ugly changes, but supposedly this makes
...
it so BCPPCompiler actually works, so I'm provisionally accepting it
-- ugly and working is better than not working! Major changes:
- normalize paths (apparently BC++ doesn't like slashes)
- overhauled how we search for and specify libraries on the linker
command-line
- hacked up 'find_library_file()' so it knows about "debug" library
naming convention as well as "bcpp_xxx.lib" -- the question is,
is this a well-established and sensible convention?
Also:
- change to use 'util.write_file()' to write the .def file
2000-08-02 01:03:23 +00:00
Greg Ward
bb56190422
Ditched 'abspath()' -- don't need 1.5.1 compatability hacks anymore.
2000-08-02 00:37:32 +00:00
Greg Ward
c6a18a5d65
Removed 'export_symbol_file'.
...
'export_symbols' can be None (not sure this is a good idea: it's inconsistent
with every other instance attribute of Extension).
2000-08-02 00:04:13 +00:00
Greg Ward
04c90fc475
Ditched some debugging prints.
2000-08-02 00:01:56 +00:00
Greg Ward
159eb92239
Patch from Rene Liebscher: generate an /IMPLIB: option to ensure that
...
the linker leaves the (temporary) .lib file in the temporary dir. (Moved
from 'msvc_prelink_hack()' method in build_ext.py.)
2000-08-02 00:00:30 +00:00
Greg Ward
0419a4ffba
Patch from Rene Liebscher, tweaked by me:
...
- 'export_symbol_file' (and corresponding 'def_file' in the old
"build info" dict) are gone; warn if we see 'def_file' in the
dict
- the MSVC "pre-link hack" is gone -- all that stuff is now handled
elsewhere (eg. by using 'export_symbols', etc.)
- add 'get_export_symbols()' and 'get_libraries()' methods -- needed
because on Windows, both of those things are a tad more complicated
than fetching them from the Extension instance
2000-08-01 23:54:29 +00:00
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