summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Import exceptions from errors.py, not ccompiler.py.Greg Ward2000-05-302-7/+7
|
* Removed exceptions -- now in errors.py to avoid expensive import of ccompiler.Greg Ward2000-05-301-16/+0
|
* Moved the CCompiler exceptions here, to avoid having to import ccompiler.pyGreg Ward2000-05-301-79/+78
| | | | | just to get a little exception class. No more string-based exceptions.
* Changed to catch compile/link failures and raise CompileError, LibError,Greg Ward2000-05-303-17/+74
| | | | or LinkError (exception classes defined in ccompiler.py).
* Added 'dump_options()' for debugging output.Greg Ward2000-05-281-0/+15
|
* Factored '_set_command_options()' out of 'get_command_obj()'.Greg Ward2000-05-281-8/+82
| | | | | | | | | | | | | Added 'reinitialize_command()' -- lets us "push" option values in a controlled, safe way; this is a small change to the code, but a big change to the Distutils philosophy of passing option values around. The preferred mode is still definitely to "pull" options from another command (eg. "install" fetches the base build directory from "build"), but it is now feasible to "push" options onto another command, when you know what's best for it. One possible application will be a "config" command, which pokes around the system and pushes values (eg. include and library directories) onto the "build" command. Added 'dump_option_dicts()' method (for debugging output).
* Changed order so 'clean' is right after the 'build' commands.Greg Ward2000-05-281-1/+1
|
* Only print debugging output if DEBUG (imported from distutils.core) is true.Greg Ward2000-05-281-14/+15
|
* Moved warnings out of 'finalize_options()' into 'run()'.Greg Ward2000-05-281-7/+13
| | | | Added a warning for 'bdist_base' directory.
* Typo fix in comment.Greg Ward2000-05-281-1/+1
|
* Some far-reaching naming changes:Greg Ward2000-05-2711-78/+59
| | | | | | | * Command method 'find_peer()' -> 'get_finalized_command()' * Command method 'run_peer()' -> 'run_command()' Also deleted the 'get_command_option()' method from Command, and fixed the one place where it was used (in "bdist_dumb").
* Article about 1.6 new featuresAndrew M. Kuchling2000-05-271-0/+233
|
* Patch from Andrew Kuchling: prune out the build and source distributionGreg Ward2000-05-271-0/+7
| | | | | | | | | | directories after all is said and done, so we don't accidentally include those files in the source distribution. (This is the quick and easy way to fix this; Andrew says: "Changing findall() looked like it was going to be messy, so I tried this instead. The only problem is that redundant directory traversals are being done, walking through build/ only to throw out all the files found at the end.").
* Support for the "install_headers" command: distribution option 'headers'Greg Ward2000-05-271-0/+4
| | | | and method 'has_headers()'.
* 'mkpath()' now detects non-string 'name' arguments -- this is a fairly commonGreg Ward2000-05-271-1/+7
| | | | | bug when adding new code, so I thought I'd make it blow up earlier than deep in posix.py.
* Tweaked description, help text.Greg Ward2000-05-271-3/+3
|
* Support for the "install_headers" command:Greg Ward2000-05-271-5/+22
| | | | | | | | | | | | | * 'headers' entry added to all the install schemes * '--install-headers' option added * 'install_headers' added to 'sub_commands' * added 'dist_name' to configuration variables (along with a few others that seem handy: 'dist_version', 'dist_fullname', and 'py_version' * in 'finalize_unix()', make sure 'install_headers' defined if user specified 'install_base' and/or 'install_platbase' * added 'has_headers()' * a few other small changes
* Added 'install_headers' command to install C/C++ header files.Greg Ward2000-05-272-0/+41
|
* Patch from M.-A. Lemburg:Jeremy Hylton2000-05-263-29/+27
| | | | | | | | | | | | | | | | | | | | | | | | | Python on UNIX now trusts PYTHONHOME unconditionally Modules/getpath.c: Landmark changed to os.py. Setting PYTHONHOME now unconditionally sets sys.prefix (and sys.exec_prefix). No further checks are done whether the standard lib can be found in that location or not. This is in sync with the PC subdir getpath implementations. PC/getpathp.c: Landmark changed to os.py. PC/os2vacpp/getpathp.c: Landmark changed to os.py. Note: BAW's checkin on exceptions.c eliminates earlier concerns about a bogus PYTHONHOME value leading to a core dump. Instead it causes a useless sys.path and prevents imports.
* Added documentation for gettempprefix().Fred Drake2000-05-261-2/+15
| | | | | | | Deprecated direct access to template. Added note about past need to modify template so that legacy code has a better chance of being understood, noting that the requirement to reset template after os.fork() disappeared in 1.5.2.
* This module is obsolete now that the standard exceptions are built-in.Barry Warsaw2000-05-261-4/+0
|
* Added documentation for TemporaryFile() and the siffix parameter to mktemp().Fred Drake2000-05-261-13/+26
| | | | | | | Removed obsolete comments about this module not creating or removing actual files. Removed obsolete comment about users needing to set template to None after calling os.fork().
* The standard exception classes. Moved here from ../Modules/_exceptions.cBarry Warsaw2000-05-261-0/+994
|
* Added exceptions.o to the list of object to build in this subdir.Barry Warsaw2000-05-261-1/+2
|
* _exceptions.c is moved to ../Python/exceptions.cBarry Warsaw2000-05-261-994/+0
|
* The _exceptions module is moved to the Python subdirectory.Barry Warsaw2000-05-261-1/+0
|
* When building on Solaris and the compiler is GCC, use '$(CC) -G' toGreg Ward2000-05-262-191/+199
| | | | | | create shared extensions rather than 'ld -G'. This ensures that shared extensions link against libgcc.a, in case there are any functions in the GCC runtime not already in the Python core.
* Piers Lauder <piers@cs.su.oz.au>:Fred Drake2000-05-261-8/+29
| | | | | | | | | | | I've added an extra comment about quoting arguments to IMAP4 commands. Also changed the command descriptions to show optional extra commands where appropriate. Fred Drake: Added example usage for the search() method based on comments from <Lucas.DeJonge@awtpl.com.au>; elaborated error handling information when arguments are missing from search() and uid().
* Guido's rewording of my definition of "root package", with an addition by me.Greg Ward2000-05-261-6/+8
|
* Rene Liebscher: check if the extension file (.so or .pyd) isGreg Ward2000-05-261-19/+24
| | | | | up-to-date with respect to the source files; that way, we don't needlessly rebuild just because object files go away.
* A grab-bag of wording tweakage.Greg Ward2000-05-261-29/+54
|
* Factored out code for extracting-or-creating one of the optionGreg Ward2000-05-261-13/+20
| | | | | | | | | | dictionaries in 'self.command_options' to 'get_option_dict()'. Simplified code in 'parse_config_files()' and 'parse_command_line()' accordingly. Fixed code in constructor that processes the 'options' dictionary from the setup script so it actually works: uses the new 'self.command_options' dictionary rather than creating command objects and calling 'set_option()' on them.
* Added the DEBUG global (set from the DISTUTILS_DEBUG environment variable).Greg Ward2000-05-261-6/+19
| | | | | Changed the exception-handling code in 'setup()' to re-raise exceptions if DEBUG is true.
* Fixed a couple of long-hidden bugs (amazing what you find when youGreg Ward2000-05-261-6/+33
| | | | | | | | | | | attempt to verify the bold assertions in the documentation): * entries for the "root package" in 'package_dir' didn't work -- fixed by improving the fall-through code in 'get_package_dir()' * __init__.py files weren't installed when modules-in-packages were listed individually (ie. in 'py_modules' in the setup script); fixed by making 'check_package()' return the name of the __init__ file if it exists, and making 'find_modules()' add an entry to the module list for __init__ if applicable
* Built-in class-based standard exceptions. Written by Fredrik Lundh.Barry Warsaw2000-05-251-0/+994
| | | | Modified, proofread, and integrated for Python 1.6 by Barry Warsaw.
* Added a test to catch the base class.Barry Warsaw2000-05-252-0/+5
|
* For backwards compatibility, simply import everything from theBarry Warsaw2000-05-251-247/+4
| | | | _exceptions module, including __doc__.
* All the exception building related stuff has been moved out of thisBarry Warsaw2000-05-251-190/+1
| | | | | | | | | | | | module and into _exceptions.c. This includes all the PyExc_* globals, the bltin_exc table, init_class_exc(), fini_instances(), finierrors(). Renamed _PyBuiltin_Init_1() to _PyBuiltin_Init() since the two phase initializations are necessary any more. Removed as obsolete _PyBuiltin_Init_2(), _PyBuiltin_Fini_1() and _PyBuiltin_Fini_2().
* Added the _exceptions module, implementing the built-in class-basedBarry Warsaw2000-05-251-0/+1
| | | | standard exceptions.
* Py_Initialize(): Now that standard exceptions are builtin, we don'tBarry Warsaw2000-05-251-11/+11
| | | | | | | | | | need two phase init or fini of the builtin module. Change the call of _PyBuiltin_Init_1() to _PyBuiltin_Init(). Add a call to init_exceptions(). Py_Finalize(): Don't call _PyBuiltin_Fini_1(). Instead call fini_exceptions() but move this to before the thread state is cleared.
* Now that standard exceptions are builtin, we don't need two phase initBarry Warsaw2000-05-251-6/+3
| | | | | | | | | | | | | | or fini of the builtin module. _PyBuiltin_Init_1 => _PyBuiltin_Init _PyBuiltin_Init_2 removed _PyBuiltin_Fini_1 removed _PyBuiltin_Fini_2 removed These functions are used to initialize the _exceptions module. init_exceptions added fini_exceptions added
* Take the basename of the script before concatenating it with the build dir.Greg Ward2000-05-251-1/+1
|
* Piers Lauder <piers@cs.su.oz.au>:Fred Drake2000-05-251-8/+16
| | | | | | This patch adds a comment about quoting to the doc string, and also checks that the 'flags' argument to the STORE command is appropriately enclosed inside parentheses to avoid quoting.
* bltin_exc: Removed the leaf_exc flag in the structure, which was onlyBarry Warsaw2000-05-251-35/+29
| | | | used to build the fallback string-based exception.
* Fix to use 'change_root()' rather than directly mangling path.Greg Ward2000-05-251-1/+2
|
* Improvements to Bastian's build_scripts command:Greg Ward2000-05-251-31/+58
| | | | | | | | | * 'first_line_re' loosened up * command description improved * replaced '_copy_files()' and '_adjust_files()' with one method that does everything, 'copy_scripts()' -- this should be more efficient than Bastian's version, should behave better in dry-run mode, and does timestamp dependency-checking
* Added comment to remind us of the (temporary?) obsolescense of theGreg Ward2000-05-251-0/+5
| | | | 'install_misc' class.
* Use Distribution's 'has_scripts()' method instead of directly accessingGreg Ward2000-05-251-1/+1
| | | | its 'scripts' attribute.
* Bastian Kleineidam: the "build_scripts" command.Greg Ward2000-05-251-0/+71
|
* Bastian Kleineidam: the "build_scripts" command and changesGreg Ward2000-05-254-11/+74
| | | | | | | | | | | | | | | | | | | | | | | necessary to support it. Details: - build command additionally calls build_scripts - build_scripts builds your scripts in 'build/scripts' and adjusts the first line if it begins with "#!" and ends with "python", optionally ending with commandline options (like -O, -t ...). Adjusting means we write the current path to the Python interpreter in the first line. - install_scripts copies the scripts to the install_scripts dir - install_data copies your data_files in install_data. You can supply individual directories for your data_files: data_files = ['doc/info.txt', # copy this file in install_scripts dir ('testdata', ['a.dat', 'b.dat']), # copy these files in # install_scripts/testdata ('/etc', ['packagerc']), # copy this in /etc. When --root is # given, copy this in rootdir/etc ] So you can use the --root option with absolute data paths.