Greg Ward
3c67b1dd08
OptionDummy now has a constructor that takes a list of options: each string
...
in the option list is an attribute of the OptionDummy that will be
initialized to None.
2000-05-23 01:44:20 +00:00
Greg Ward
732745bb70
Tweaked usage message.
2000-05-23 01:43:08 +00:00
Greg Ward
d5d8a9982b
Marching towards full support of config files: thoroughly overhauled the
...
command-line parsing code, splitting it up into several methods (new
methods: '_parse_command_opts()', '_show_help()') and making it put options
into the 'command_options' dictionary rather than instantiating command
objects and putting them there.
Lots of other little changes:
* merged 'find_command_class()' and 'create_command_obj()' and
called the result 'get_command_class()'
* renamed 'find_command_obj()' to 'get_command_obj()', and added
command object creation and maintenance of the command object cache to
its responsibilities (taken over from 'create_command_obj()')
* parse config files one-at-a-time, so we can keep track of the
filename for later error reporting
* tweaked some help messages
* fixed up many obsolete comments and docstrings
2000-05-23 01:42:17 +00:00
Guido van Rossum
32000e8464
Reduce opt level for BeOS - Donn Cave.
2000-05-22 21:31:50 +00:00
Guido van Rossum
1d10f3eac2
Changed list_directory() somewhat. It is now only called when there
...
is no index.htm[l] file, and when it is called, it also spits out the
headers. When an index.htm[l] file is present, the regular (file
access) path is followed. Also, when the guessed content-type matches
text/*, open the file in text mode; otherwise in binary mode.
2000-05-21 16:25:29 +00:00
Greg Ward
4355093f94
Tweaked output of 'copy_file()': if copying to a new name, show the whole
...
destination path, otherwise show just the directory.
2000-05-20 16:05:34 +00:00
Greg Ward
a4adafd55b
Changed the semantics of the 'sub_commands' list: instead of function
...
objects, it now has method names.
Added three methods, 'has_lib()', 'has_scripts()', and 'has_data()'
to determine if we need to run each of the three possible sub-commands.
Added 'get_sub_commands()' to take care of finding the methods named
in 'sub_commands', running them, and interpreting the results to
build a list of sub-commands that actually have to be run.
2000-05-20 15:17:09 +00:00
Greg Ward
f355d473fa
Check if the claimed build directory doesn't exist, and warn that we don't
...
have any Python modules to install (rather than bomb when we try to copy
a non-existent directory).
2000-05-20 15:08:57 +00:00
Greg Ward
44a61bbb66
Added 'has_scripts()', 'has_data_files()' methods.
2000-05-20 15:06:48 +00:00
Greg Ward
36c36fec7c
Added missing import.
2000-05-20 14:07:59 +00:00
Greg Ward
f7edea749d
Lyle Johnson: added stubs for the four miscellaneous methods that must be
...
implemented by subclasses, since they are needed by 'gen_lib_options()'.
2000-05-20 13:31:32 +00:00
Greg Ward
5299b6afc5
Added support for the 'export_symbols' parameter to 'link_shared_object()'
...
and 'link_shared_lib()'. In MSVCCompiler, this is meaningful: it adds
/EXPORT: options to the linker command line. In UnixCCompiler, it
is ignored.
2000-05-20 13:23:21 +00:00
Guido van Rossum
974f70d97b
Add call to putheader('Host', 'www.python.org') to the example.
2000-05-19 23:06:45 +00:00
Guido van Rossum
95713eb9d6
Fix the test for socklen_t so that it searches through sys/socket.h.
2000-05-18 20:53:31 +00:00
Fred Drake
8c5cedee69
New description for math.frexp() -- poor description noted by
...
Francois Pinard.
2000-05-18 05:07:38 +00:00
Jack Jansen
8a6d4d9cca
macfsn should always be included, like exceptions and site.
2000-05-17 13:27:09 +00:00
Fred Drake
11b093641a
Donn Cave <donn@oz.net>:
...
BeOS (up to 5.0) lacks <netinet/tcp.h>.
2000-05-16 13:30:12 +00:00
Jack Jansen
d9c01a56a0
Manually added HRHTMLRenderingLibAvailable.
...
Blacklist HRDisposeReference and call it in the dispose routine.
2000-05-15 15:36:52 +00:00
Jack Jansen
036194ceb4
Slowly becoming functional...
2000-05-15 15:35:08 +00:00
Jack Jansen
ebd0106c77
Interface to macOS 9 HTMLRenderingLib. Not yet functional.
2000-05-14 22:05:36 +00:00
Gregory P. Smith
8711a2e150
Changed default developer name.
...
Added some guiding comments.
2000-05-13 03:35:05 +00:00
Gregory P. Smith
2c067ef904
Template for writing Distutils command modules.
2000-05-13 03:32:36 +00:00
Gregory P. Smith
86ee81e34b
Contribution from Harry Henry Gebel: the 'bdist_rpm' command.
...
(Completely uninspected and untested by me, this is just to
get the code into CVS!)
2000-05-13 03:11:40 +00:00
Gregory P. Smith
21b9e910a5
In 'install_misc': 'self.outfiles' defaults to the empty list, so we don't
...
have to worry about "or []" in 'get_outputs()'.
2000-05-13 03:10:30 +00:00
Gregory P. Smith
6a901dd1bd
List data files are listed in the Distribution attribute 'data_files',
...
rather than 'data'.
2000-05-13 03:09:50 +00:00
Gregory P. Smith
c59d4e0777
Added the 'bdist_base' option, the base temp directory for all bdist commands.
2000-05-13 03:08:28 +00:00
Gregory P. Smith
e30b7a91c7
Added 'get_inputs()' methods, needed by the "install" command's
...
'get_inputs()'.
2000-05-13 03:07:53 +00:00
Gregory P. Smith
ba0506b349
Drastically simplified by taking advantage of the "install" command's
...
new flexibility, specifically the 'root' option. Now, we just use
"install" to do a fake installation into a temporary directory
(the 'bdist_dir' option, which derives from the 'bdist_base' option of
"bdist"), and then tar/zip up that directory. This means that dumb
built distributions are now relative to the root directory, rather than
the prefix or exec-prefix; this is probably a feature, but does make
them slightly less flexible.
2000-05-13 03:06:56 +00:00
Gregory P. Smith
a04d807127
Rename 'build_bdist' to 'bdist_base', and get it by default from the
...
"bdist" command rather than "build".
2000-05-13 02:30:15 +00:00
Gregory P. Smith
c008488981
Typo fix.
2000-05-13 02:20:43 +00:00
Gregory P. Smith
0ec8ef1601
Made the '--record' option take an argument, which is the name of the
...
file to write the list of installed files to.
2000-05-13 02:16:45 +00:00
Gregory P. Smith
7e855ef6ad
Ditch the explicit search for *.py[co] files -- they're now included in
...
the list returned by 'get_outputs()', thanks to changes in the
"install_lib" command.
2000-05-13 02:13:53 +00:00
Gregory P. Smith
11fb783fa4
Added '_bytecode_filenames()' method, and use it in 'get_outputs()'
...
to ensure that compiled bytecode files are considered part of the output
of the "install_lib" command.
2000-05-13 02:11:10 +00:00
Gregory P. Smith
f9ebf98725
Moved check for installation to non-sys.path location so it comes
...
last (after writing list of installed files) -- that way, the warning
is more visible.
2000-05-13 02:01:22 +00:00
Gregory P. Smith
8cb676195b
Harry Henry Gebel: add the "--record" option to write the list of
...
installed files to INSTALLED_FILES.
2000-05-13 01:58:19 +00:00
Gregory P. Smith
a190268bf6
Added the 'build_bdist' option and code to clean it up -- this is the
...
top-level temporary directory for creating built distributions. (Won't
work yet, since the "build" command doesn't yet have a 'build_bdist'
option, and none of the "bdist" commands support it yet.)
2000-05-13 01:56:55 +00:00
Gregory P. Smith
b5ebe5d640
Harry Henry Gebel: get extra compiler flags from the CFLAGS environment
...
variable.
(Is this really needed? Can we drop it when the config file mechanism
allows users to set compiler flags in setup.cfg?)
2000-05-13 01:52:14 +00:00
Gregory P. Smith
52e399c904
Harry Henry Gebel: add support for the 'bdist_rpm' command, specifically
...
the 'no_format_option' class attribute.
2000-05-13 01:49:56 +00:00
Gregory P. Smith
d5b53df18c
Harry Henry Gebel: add 'bdist_rpm' command.
2000-05-13 01:48:15 +00:00
Gregory P. Smith
de5c953a2b
From Lyle Johnson: renamed 'implib_dir' to 'implib_file', and
...
correctly ensure that it's 'dirname' exists.
2000-05-13 01:35:33 +00:00
Jack Jansen
8f7f91fa2a
(Temporarily) revived after a long sleep, for building MacPython without GUSI
2000-05-12 21:37:45 +00:00
Jack Jansen
7bfc2ebb01
Fixed to work again without USE_GUSI and with USE_MSL_MALLOC
2000-05-12 21:37:10 +00:00
Jack Jansen
12e89e42d8
Fixed to work again without USE_GUSI
2000-05-12 21:36:29 +00:00
Jack Jansen
48b486b054
Added unicodedata and _codecs modules (which had apparently slipped through until now).
2000-05-12 21:36:06 +00:00
Jack Jansen
092580baa9
First tiny steps towards Carbon: this project currently builds a PythonStandSmall without GUSI and with standard MSL malloc. Socket and select are the main victims of this.
2000-05-12 21:29:58 +00:00
Guido van Rossum
98b0404a0e
Removing thread.h -- it has been obsolete for quite a while.
2000-05-12 14:21:10 +00:00
Gregory P. Smith
6fafca4e1d
Added comment/docstring/revision header.
2000-05-12 01:58:29 +00:00
Gregory P. Smith
17f641c143
Fixed 'select_scheme()' so it doesn't override a directory attribute that's
...
already been set (eg. by a command-line option).
2000-05-12 01:54:50 +00:00
Gregory P. Smith
74ead8ff5d
Added --skip-build option, so lazy debuggers/testers (mainly me) don't
...
have to wade through all the 'build' output when testing installation.
2000-05-12 01:46:47 +00:00
Gregory P. Smith
f8f2b98bdd
Caught up with renaming in 'install_misc' base class.
2000-05-12 01:34:33 +00:00