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
Gregory P. Smith
ae988a57d2
Deleted some cruft.
...
Caught up with renaming in 'install_misc' base class.
Changed 'run()' to chmod installed scripts under Unix.
2000-05-12 01:32:30 +00:00
Gregory P. Smith
ce2b6b838f
In 'install_misc' class:
...
- renamed '_copydata()' to 'copy_files()'
- changed it to record complete output filenames
- dropped '_outputdata()' in favour of much simpler 'get_outputs()'
2000-05-12 01:31:37 +00:00
Gregory P. Smith
147e5f3c65
Doc patch from Bastein Kleineidam: start to describe the 'install' command
...
family, including the new 'install_scripts' and 'install_data' commands.
2000-05-12 00:58:18 +00:00
Gregory P. Smith
b2e3bb3d6a
Patch from Bastien Kleineidam:
...
adds the 'install_data' and 'install_scripts' commands; these two
are trivial thanks to the 'install_misc' base class in cmd.py.
(Minor tweaks and commentary by me; the code is untested so far.)
2000-05-12 00:52:23 +00:00
Gregory P. Smith
bb8c71d563
Call 'parse_config_files()' at the appropriate point.
...
Tweaked error-generating code.
2000-05-12 00:42:19 +00:00
Gregory P. Smith
1426354cf6
Preliminary support for config files:
...
- added 'find_config_files()' and 'parse_config_files()' methods
- added 'command_options' attribute
Comment/docstring updates.
2000-05-12 00:41:33 +00:00
Gregory P. Smith
e7e35ac1c2
Made 'check_environ()' "public" by stripping the leading underscore;
...
added a global '_environ_checked' so we know if it's already been
called.
2000-05-12 00:40:00 +00:00
Gregory P. Smith
6cd0c43366
Fix from Lyle Johnson: add the '--compiler' option.
...
Also added creation of 'implib_dir', a temporary directory specific to
MSVC++ -- but I checked in two ways of fixing it (Lyle's and mine),
because I'm not sure which is right.
2000-05-12 00:34:12 +00:00
Gregory P. Smith
9668b78b9f
Fix from Lyle Johnson: add the '--compiler' option.
2000-05-12 00:33:14 +00:00
Guido van Rossum
c9a5f343bc
The addition of rint() (by Peter Schneider-Kamp; I forgot to mention
...
that before) in the previous patch has one problem; rint() is not in
the C math library on all platforms (e.g. not for VC++). Make it
conditional on HAVE_RINT.
2000-05-11 18:42:27 +00:00
Guido van Rossum
a28518a6a6
Add check for rint() in math library.
2000-05-11 18:41:32 +00:00
Guido van Rossum
99f235d5e7
Remove stdwin references
2000-05-11 18:29:05 +00:00
Guido van Rossum
6a1b1338de
Removing junk
2000-05-11 18:28:03 +00:00
Guido van Rossum
81b4e41cd9
removing more stdwin users
2000-05-11 18:27:21 +00:00
Guido van Rossum
9ab06ee7b2
Added a few new names...
2000-05-11 18:20:30 +00:00
Guido van Rossum
71260b846e
Added math.rint() -- round according to current IEEE754 mode
2000-05-11 18:19:42 +00:00
Guido van Rossum
dab6cb8f6d
removing more stdwin users
2000-05-11 14:43:52 +00:00
Guido van Rossum
ede8c6eea1
Bill Tutt:
...
Calling Sleep(0) for a spinlock can cause a priority inversion, adding
comments to explain what's going on.
2000-05-11 12:53:51 +00:00
Fred Drake
65e69002a2
Oops, better also note that the module initialization function must be
...
extern "C" for C++.
2000-05-10 20:36:34 +00:00
Fred Drake
2d54523551
Section "The Module's Method Table and Initialization Function":
...
Explain that the name of the initialization function must be
init<module>(). Omission noted by Daniel Kozan
<crum@dev-group.com>.
2000-05-10 20:33:18 +00:00
Guido van Rossum
cf3ba65749
At Bob Kahn's request, add CNRI to the copyright string (but not to
...
the notice yet).
2000-05-10 20:06:00 +00:00