summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* First crack at the Distutils "config" command. Unlike other commands, thisGreg Ward2000-06-061-0/+180
| | | | | | | | | | | | | | one doesn't *do* anything by default; it's just there as a conduit for data (eg. include dirs, libraries) from the user to the "build" commands. However, it provides a couple of Autoconf-ish methods ('try_compile()', 'try_link()', 'try_run()') that derived, per-distribution "config" commands can use to poke around the target system and see what's available. Initial experimenst with mxDateTime indicate that higher-level methods are necessary: analogs of Autoconf's AC_CHECK_HEADER, AC_CHECK_LIB will be needed too (and that's just to probe the C/C++ system: how to probe the Python system is wide open, and someday we'll have to worry about probing a Java system too).
* Fix 'reinitialize_command()' so it resets the 'have_run' flag for theGreg Ward2000-06-061-0/+1
| | | | command being reinitialized to false.
* Support for multiple distribution formats in one run.Greg Ward2000-06-061-17/+18
|
* 'get_outputs()' now returns an empty list instead of None.Greg Ward2000-06-061-1/+1
|
* Added lib-tk to the standard sys.path initializer.Jack Jansen2000-06-051-1/+2
|
* Removed assorted old ifdefs.Jack Jansen2000-06-042-19/+0
|
* Removed support for very old CodeWarrior runtimes.Jack Jansen2000-06-041-20/+0
|
* Removed SYMANTEC_CFM68K support.Jack Jansen2000-06-041-4/+0
|
* Removed USE_STDWIN support.Jack Jansen2000-06-044-87/+1
|
* Removed THINK_C support.Jack Jansen2000-06-0410-812/+2
|
* Define USE_GUSI2, not USE_GUSI1. PythonStandalone still doesn't compile due ↵Jack Jansen2000-06-041-2/+2
| | | | to tk issues, though, but it isn't important right now.
* Removed THINK_C support.Jack Jansen2000-06-041-7/+9
| | | | Added a CARBON indicator to the version string.
* Fixed syntax error.Greg Ward2000-06-041-9/+14
| | | | | | Half-fixed RPM 2 compatibility:added 'rpm_base' option, which must be set (to eg. /usr/src/redhat on a stock Red Hat system) if rpm2_mode is on. Still not quite working, though.
* Use 'ensure_string_list()' for 'formats' option, so that it can beGreg Ward2000-06-041-2/+1
| | | | spelled sensibly in a config file.
* Patch from Harry Henry Gebel:Greg Ward2000-06-041-59/+103
| | | | | | | | | | | | | | | | | Fills in question marks in help Reads scripts in from files rather than strings Adds RPM 2 compatibility mode (untested). Use of this mode requires that --bdist-base be specified because bdist_rpm has no way of detecting where RPM wants to find spec files and source files. An unmodified RedHat 5.0 system would require '--bdist-base=/usr/src/RedHat'. (You would also have to be root.) If the rpmrc file has been modified to allow RPMs to be built by normal users then --build-base would need to be changed accordingly. Formats the changelog. GPW: tweaked formatting, added some editorial comments.
* Added the 'ensure_*' methods from bdist_rpm; refactored 'ensure_filename()'Greg Ward2000-06-041-1/+72
| | | | and added 'ensure_dirname()'.
* Removed the 'ensure_*' methods -- they're just too handy too keep in oneGreg Ward2000-06-041-43/+1
| | | | command class, so they're now in the Command base class.
* Renamed 'modules' option to 'py_modules', for consistency with DistributionGreg Ward2000-06-041-13/+13
| | | | (and in order to generate a more sensible error message cleanly).
* Use PyArg_ParseTuple and specify the method names, following a suggestionAndrew M. Kuchling2000-06-031-5/+5
| | | | from Greg Stein
* Add missing PyArg_NoArgs() calls to methods that didn't take argumentsAndrew M. Kuchling2000-06-031-8/+16
| | | | (Pointed out by Moshe Zadka)
* Latex formatting fixesAndrew M. Kuchling2000-06-031-33/+29
|
* Patches from Moshe, w/ AMK's revisionsAndrew M. Kuchling2000-06-031-45/+313
| | | | Wrote Unicode section
* Patch from Harry Henry Gebel: fixes a bit of code that slipped by myGreg Ward2000-06-031-2/+1
| | | | overhaul last night.
* Catch DistutilSetupError from the Distribution constructor.Greg Ward2000-06-031-1/+4
|
* Added a bunch of new globals in '_init_mac()' -- these will be needed toGreg Ward2000-06-031-1/+15
| | | | | support the forthcoming Cygwin/Mingw32 GCC-on-Windows patch. Standardized CVS id line.
* First version of the project that produces a working Carbon binary. The ↵Jack Jansen2000-06-021-0/+0
| | | | binary has only been tested on MacOS9, so far. This project needs CW IDE 4.1b4 or later.
* Revived various of the compatability routines and made them ↵Jack Jansen2000-06-024-25/+61
| | | | Carbon-compliant. This is needed because the initial carbon-python does not use GUSI.
* Removed hfsrunning() macro. This means MacPython won't run on MacOS 5 (oops, ↵Jack Jansen2000-06-021-3/+0
| | | | System 5) or earlier anymore:-)
* Made the core toolbox modules carbon-compatible using the new greylist ↵Jack Jansen2000-06-0235-129/+667
| | | | | | feature of bgen: non-carbon methods are still included in non-carbon MacPython. The issue of backward compatibility of Python code is still open. Macmodule and macosmodule have also been carbonified. Some functionality is still missing there.
* Replaced GetFInfo and SetFInfo calls with FspGetFInfo and FspSetFInfo calls, ↵Jack Jansen2000-06-021-3/+9
| | | | which are carbon-compatible.
* Removed (within an #ifdef) Carbon-incompatabilities:Jack Jansen2000-06-021-0/+6
| | | | | - Don't call all the toolbox init routines. - No balloon help, so removed help code from the initial dialog.
* Removed (within an #ifdef) Carbon-incompatabilities:Jack Jansen2000-06-021-0/+25
| | | | | | | - Use TickCount() in stead of LMGetTicks() - Don't use xxxGetFile event filter - Don't call SystemTask or HandleSysWindowEvent (is this also automatically handled under os9??) - Don't scan event queue for cmd-. (to be fixed at some point).
* Fixed callback function arguments to be carbon-compatible.Jack Jansen2000-06-021-4/+6
| | | | (Temporarily?) removed call to ProcessHighLevelEvent until we find out how to do this (Carbon only).
* Config file for PythonStandCarbon (small non-shared MacPython for Carbon).Jack Jansen2000-06-021-0/+40
|
* Made compatible with MSL Carbon libraries.Jack Jansen2000-06-021-4/+13
|
* make sure the case is correct (damned case-sensitive languages :-)Jeremy Hylton2000-06-021-7/+7
|
* Bumped version number to 0.9pre (there will be a couple of code snapshotsGreg Ward2000-06-021-1/+1
| | | | | before the real release, but I want to make it clear that a major new release is on the way).
* Only print debugging output if DEBUG true.Greg Ward2000-06-021-6/+7
|
* Only print debugging output if DEBUG true (and deleted some of the moreGreg Ward2000-06-021-6/+7
| | | | extraneous debug prints).
* Use Distribution method 'dump_option_dicts()' for debugging output, and onlyGreg Ward2000-06-021-6/+6
| | | | do so if DEBUG is true.
* Ditched the obsolete '_get_package_data()' method and itsGreg Ward2000-06-021-142/+3
| | | | '_check_*()' helpers.
* Fairly massive overhaul to support getting RPM inputs (extra meta-data,Greg Ward2000-06-021-32/+230
| | | | | | | | | | | | | | | | | | | | | | | | | prep/build/etc. scripts, doc files, dependency info) from a config file rather than the dedicated "package_info" file. (The idea is that developers will provide RPM-specific info in the "[bdist_rpm]" section of setup.cfg, but of course it could also be supplied in the other config files, on the command line, or in the setup script -- or any mix of the above.) Major changes: * added a boatload of options to 'user_options' and 'initialize_options()': 'distribution_name', 'group', 'release', ... * added 'finalize_package_data()', which takes the place of '_get_package_data()' -- except it's called from 'finalize_options()', not 'run()', so we have everything figured out before we actually run the command * added 'ensure_string()', 'ensure_string_list()', 'ensure_filename()'; these take the place of '_check_string()' and friends. (These actually look like really useful type-checking methods that could come in handy all over the Distutils; should consider moving them up to Command and using them in other command classes' 'finalize_options()' method for error-checking). * various cleanup, commentary, and adaptation to the new way of storing RPM info in '_make_spec_file()'
* Reformatted and updated many docstrings.Greg Ward2000-06-023-139/+140
|
* Trent Mick <trentm@ActiveState.com>:Fred Drake2000-06-011-2/+2
| | | | | | | This patch correct bounds checking in PyLong_FromLongLong. Currently, it does not check properly for negative values when checking to see if the incoming value fits in a long or unsigned long. This results in possible silent truncation of the value for very large negative values.
* Trent Mick <trentm@activestate.com>:Fred Drake2000-06-011-4/+10
| | | | | Fix test of the "math" module so it does not break on platforms that do not offer rint(); just skip that portion of the test in that case.
* Fredrik Lundh: here's the 96.6% version of SREJeremy Hylton2000-06-016-303/+743
|
* add new Python/exceptions.c to python16 project (courtesy Trent Mick)Jeremy Hylton2000-06-011-0/+15
|
* Improve TypeError exception message for list catenation.Fred Drake2000-06-011-2/+2
|
* Michael Hudson <mwh21@cam.ac.uk>:Fred Drake2000-06-013-4/+12
| | | | | Removed PyErr_BadArgument() calls and replaced them with more useful error messages.
* Fix bug reported by atkins@gweep.net; re.compile(r"[\100-\410]")Andrew M. Kuchling2000-06-011-1/+1
| | | | | dumps core. Solution: fix check_escape() to match its comment and use only the low 8 bits of the octal number.