summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
Commit message (Collapse)AuthorAgeFilesLines
* Corran Webster: fix 'change_root()' to handle Mac OS paths.Greg Ward2000-09-211-1/+7
|
* *Very* belated application of Thomas Heller's patch to handleGreg Ward2000-09-191-3/+86
| | | | | | | resource files. The gist of the patch is to treat ".rc" and ".mc" files as source files; ".mc" files are compiled to ".rc" and then ".res", and ".rc" files are compiled to ".res". Wish I knew what all these things stood for...
* Set the 'nt' installation scheme for the install command even if runThomas Heller2000-09-191-8/+25
| | | | | on other systems, so that data, headers, scripts are included in the installer.
* Catch up to recent changes in TextFile (spotted by Bastian Kleineidam).Greg Ward2000-09-181-1/+1
|
* Fixed to respect 'define_macros' and 'undef_macros' on Extension object.Greg Ward2000-09-171-1/+5
|
* Added 'expand_makefile_vars()' to (duh) expand make-style variablesGreg Ward2000-09-171-9/+39
| | | | | | | | in a string (gives you something to do with the dictionary returned by 'parse_makefile()'). Pulled the regexes in 'parse_makefile()' out -- they're now globals, as 'expand_makefile_vars()' needs (two of) them. Cosmetic tweaks to 'parse_makefile()'.
* Added 'read_setup_file()' to read old-style Setup files. Could make lifeGreg Ward2000-09-171-2/+110
| | | | | | easier for people porting Makefile.pre.in-based extensions to Distutils. Also loosened argument-checking in Extension constructor to make life easier for 'read_setup_file()'.
* Changed so lines that are all comment (or just whitespace + comment)Greg Ward2000-09-161-9/+27
| | | | | | | | | | are completely skipped, rather than being treated as blank lines (and then subject to the 'skip_blanks' flag). This allows us to process old-style Setup files, which rely on hello \\ # boo! there coming out as "hello there".
* Andrew Kuchling:Greg Ward2000-09-161-1/+1
| | | | | Fixed precendence bug that meant setting skip_blanks to false didn't work under some circumstances.
* [change from 2000/08/11, propagating now to distutils copy]Greg Ward2000-09-161-9/+17
| | | | | Factored the guts of 'warn()' out to 'gen_error()', and added the 'error()' method (trivial thanks to the refactoring).
* [change from 2000/04/17, propagating now to distutils copy]Greg Ward2000-09-161-26/+30
| | | | | | | Dropped the 'collapse_ws' option and replaced it with 'collapse_join' -- it's *much* faster (no 're.sub()') and this is the reason I really added 'collapse_ws', ie. to remove leading whitespace from a line being joined to the previous line.
* Rene Liebscher: if we have to run the same sub-command multiple timesGreg Ward2000-09-161-5/+18
| | | | | | (eg. "bdist_dumb", to generate both ZIP and tar archives in the same run), tell all but the last run to keep temp files -- this just gets rid of the need to pseudo-install the same files multiple times.
* Renamed --keep-tree to --keep-temp.Greg Ward2000-09-161-3/+3
|
* Renamed --clean to --no-keep-temp and --noclean to --keep-temp.Greg Ward2000-09-161-6/+6
|
* Renamed --keep-tree option to --keep-temp.Greg Ward2000-09-161-3/+3
|
* Ensure sub-commands of "install" are reinitialized too.Greg Ward2000-09-161-3/+2
| | | | Run "install" the right way, by calling 'run_command()'.
* Remove some debugging output from the last change.Greg Ward2000-09-161-7/+0
|
* In 'reinitialize_subcommand()', pass 'reinit_subcommands' flag on to theGreg Ward2000-09-161-2/+3
| | | | real implementation in Distribution.
* Generalized 'reinitialize_command()' so it can optionally reinitializeGreg Ward2000-09-161-2/+20
| | | | | | the command's sub-commands as well (off by default). This is essential if we want to be be able to run (eg.) "install" twice in one run, as happens when generating multiple built distributions in one run.
* Added the "sub-command" machinery to formalize the notion of "commandGreg Ward2000-09-161-0/+31
| | | | | | | families" -- eg. install and its brood, build and its brood, and so forth. Specifically: added the 'sub_commands' class attribute (empty list, sub- classes must override it) and a comment describing it, and the 'get_sub_commands()' method.
* Factored the "sub-command" machinery out to Command. Mainly, thisGreg Ward2000-09-161-25/+10
| | | | | meant removing 'get_sub_commands()', and moving the 'sub_commands' class attribute to the end and restructuring it to conform to the new regime.
* Tweaked the build temp dir names again.Greg Ward2000-09-161-8/+4
|
* Typo fix.Greg Ward2000-09-161-1/+1
|
* Include the Python version in the platform-specific build directories:Greg Ward2000-09-161-2/+4
| | | | | | with the recent change in 'get_platform()', we now have directory names like "build/lib-1.5-linux-i586". Idea and original patch by Rene Liebscher.
* Document the directory separatory for include dir and library dir lists.Greg Ward2000-09-161-2/+3
|
* Added 'warn_dir' option so other code can sneak in and disableGreg Ward2000-09-151-3/+6
| | | | the sometimes inappropriate warning about where we're installing data files.
* Adjust to the new sysconfig regime: use 'get_config_vars()' insteadGreg Ward2000-09-151-3/+6
| | | | | | | of globals from sysconfig. Added 'prefix' and 'exec_prefix' to the list of variables that can be expanded in installation directories (preserving the stupid old names of 'sys_prefix' and 'sys_exec_prefix, though).
* Adjust to the new sysconfig regime: use 'get_config_var()' insteadGreg Ward2000-09-151-3/+4
| | | | of globals from sysconfig.
* Revamped 'get_platform()' to try and do something reasonably smart onGreg Ward2000-09-151-4/+42
| | | | POSIX platforms, ie. get a little more detail than 'sys.platform' gives.
* Changed from eager parsing of Makefile (at import time) to lazy: only doGreg Ward2000-09-151-25/+63
| | | | | | | | | | | | | | | all that work when someone asks for a "configuration variable" from the Makefile. Details: - added 'get_config_vars()': responsible for calling one of the '_init_*()' functions to figure things out for this platform, and to provide an interface to the resulting dictionary - added 'get_config_var()' as a simple interface to the dictionary loaded by 'get_config_vars()' - changed the '_init_*()' functions so they load the global dictionary '_config_vars', rather than spewing their findings all over the module namespace - don't delete the '_init_*()' functions when done importing - adjusted 'customize_compiler()' to the new regime
* Fixed so 'parse_makefile()' uses the TextFile class to ensure thatGreg Ward2000-09-151-6/+8
| | | | | comments are stripped and lines are joined according to the backslash convention.
* Added --force (-f) option to force installation (including bytecodeGreg Ward2000-09-135-4/+20
| | | | compilation).
* Bump version to 0.9.3pre.Greg Ward2000-09-131-1/+1
|
* Fix install directories on Mac OS: now everything goes toGreg Ward2000-09-131-2/+2
| | | | <prefix>:Lib:site-packages.
* Bastian Kleineidam: fix so it cleans up the temporary script-buildingGreg Ward2000-09-121-20/+13
| | | | directory too. Also generally cleaned up the code.
* Delete some debugging prints.Greg Ward2000-09-111-2/+0
|
* Added --plat-name option to override sysconfig.get_platform() inGreg Ward2000-09-112-4/+18
| | | | generated filenames.
* Added --python and --fix-python options for better control over whatGreg Ward2000-09-101-16/+33
| | | | | interpreter the .spec file refers to. Cosmetic tweaks.
* The installer now displays info about version of distutilsThomas Heller2000-09-091-263/+278
| | | | | | | | used to create the distribution and the creation date. Takes care of the extra_path argument to the setup function, installs the modules into <prefix>/extra_path and creates a -pth file (like install_lib does).
* The windows installer must also look under the HKEY_CURRENT_USER keyThomas Heller2000-09-091-240/+240
| | | | for python installations, not only under HKEY_LOCAL_MACHINE.
* Changes:Thomas Heller2000-09-071-273/+298
| | | | | | | | | | | | | | | | | | | | | | | | | distutils/command/bdist_wininst.py: - the windows installer is again able to compile after installing the files. Note: The default has changed, the packager has to give --no-target-compile/--no-target-optimize to NOT compile on the target system. (Another note: install_lib's --compile --optimize options have the same semantics to switch off the compilation. Shouldn't the names change?) - All references to specific python versions are gone. - A small bug: raise DistutilsPlatformError ("...") instead of raise DistutilsPlatformError, ("...") - When bdist_wininst creates an installer for one specific python version, this is reflected in the name: Distutils-0.9.2.win32-py15.exe instead of Distutils-0.9.2.win32.exe - bdist_wininst, when run as script, reads the wininst.exe file and rewrites itself. Previously this was done by hand. misc/install.c - All the changes needed for compilation - Deleted a lot of debug/dead code
* Typo fix.Greg Ward2000-09-071-1/+1
|
* Bullet-proofing of 'make_release_tree()':Greg Ward2000-09-061-6/+14
| | | | | | - 'mkpath()' the distribution dir in case of empty manifest - warn if empty manifest - detect, warn about, and skip non-regular files in manifest
* Reorganized logic in 'get_file_list()' so it's easier to read, and fixed aGreg Ward2000-09-061-7/+8
| | | | | bug to boot: now works even if both MANIFEST and MANIFEST.in don't exist. Don't hardcode setup.py, use 'self.distribution.script_name'.
* Typo fix.Greg Ward2000-09-062-2/+2
|
* Rene Liebscher/Thomas Heller:Greg Ward2000-09-011-20/+22
| | | | | | | * ensure the "dist" directory exists * raise exception if using for modules containing compiled extensions on a non-win32 platform. * don't create an .ini file anymore (it was just for debugging)
* Rene Liebscher:Greg Ward2000-09-011-13/+13
| | | | | | * reverse library names from bcpp_library to library_bcpp * move some code to the right places, to put the def-files in the right directories again
* Rene Liebscher: comment fixes.Greg Ward2000-09-011-2/+2
|
* Rene Liebscher: hack '_init_posix()' to handle the BeOS linker script.Greg Ward2000-09-011-0/+17
| | | | | (With a worry-wart comment added by me about where we *should* add the Python library to the link.)
* Bump version to 0.9.2.Greg Ward2000-09-011-1/+1
|