summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/bdist_wininst.py
Commit message (Collapse)AuthorAgeFilesLines
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* Fix [1055540 ] bdist_wininst broken for pure Python distributionsMark Hammond2004-10-271-14/+15
|
* The get_installer_filename() method forgot to return the name itThomas Heller2004-08-171-0/+1
| | | | calculates. Spotted by Cort Danger Stratton.
* Factored out a method to determine the final installer filename.Thomas Heller2004-07-231-9/+14
|
* bdist_wininst does now properly handle unicode strings or byte stringsThomas Heller2004-07-231-7/+18
| | | | | | with umlauts in the author argument and others. Fixes sf # 993943.
* The binary layout of cfgdata has changed, so the magic number has toThomas Heller2004-07-191-1/+7
| | | | change as well. Add a comment explaining this.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Fix SF#983164.Thomas Heller2004-07-061-2/+26
| | | | | | | | | | | | | | | | | | Patch from Mark Hammond: bdist_wininst attempts to use the correct MSVC runtime for the current version of Python. This doesn't work correctly when --target-version is set. In that case, bdist_wininst still uses the *current* sys.version (ie, 2.4) rather than the version specified as --target-version. Thus, the msvc7 runtime based executable stub is *always* used. This patch "hard-codes" knowledge of earlier Python versions, providing the correct result when Python 2.4 is used to build Python 2.3 and earlier distributions. Remove the short variant (-v) of the --target-version command line options, it conflicts with the --verbose/-v standard distutils switch.
* Use the right wininstXX.exe, depending onThomas Heller2004-02-201-2/+8
| | | | | | | msvccompiler.get_build_version(). Distributions without a pre-install-script didn't work any longer, we must at least provide the terminating NUL character.
* Patch #892660 from Mark Hammond, for distutils bdist_wininst command.Thomas Heller2004-02-201-3/+29
| | | | | | | | | | | install.c: support for a 'pre-install-script', run before anything has been installed. Provides a 'message_box' module function for use by either the pre-install or post-install scripts. bdist_wininst.py: support for pre-install script. Typo (build->built), fixes so that --target-version can still work, even when the distribution has extension modules - in this case, we insist on --skip-build, as we still can't actually build other versions.
* Fix for sf # 749210, wininst isn't build correctly after building zip.Thomas Heller2003-06-121-1/+1
| | | | | | The problem was that subcommands were not reinitialized. Bugfix candidate, will backport myself.
* (This is hopefully the last large, funny checkin message forThomas Heller2002-11-221-400/+4
| | | | | | | | | | bdist_wininst.py we will see.) Removed the base64 encoded binary contents, wininst.exe must be in the same directory as this file now. wininst.exe must be recompiled and commited each time the sources in PC/bdist_wininst are changed.
* get_python_version was not imported.Thomas Heller2002-11-221-0/+1
|
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-2/+0
| | | | is often out of date
* [Bug #550364] Use sysconfig.get_python_version()Andrew M. Kuchling2002-11-141-1/+1
|
* Use dynamic linking for the SHGetSpecialFolderPath function, it is notThomas Heller2002-11-071-331/+331
| | | | | | | always available on Windows NT. When the function cannot be loaded, get_special_folder_path raises OSError, "function not available". Compiled the exe, and rebuilt bdist_wininst.py.
* Must now give the basename - not including directories - of theThomas Heller2002-11-051-346/+358
| | | | | | install-script on the command line. Recreated after recompilation of wininst.exe.
* Recreated after source changes.Thomas Heller2002-10-161-319/+319
|
* Recreated after source changes.Thomas Heller2002-10-151-315/+315
|
* Revert the previous checkin - it didn't work anyway.Thomas Heller2002-10-151-4/+3
|
* Massive changes from SF 589982 (tempfile.py rewrite, by ZackGuido van Rossum2002-08-091-3/+4
| | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
* Recompiled the exe and updated bdist_wininst.py.Thomas Heller2002-07-291-334/+343
|
* import base64 at the top to avoid two different imports at other timesJeremy Hylton2002-06-041-2/+2
|
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-3/+4
| | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing.
* Set the warn_dir option to 0 before running the install command.Thomas Heller2002-04-091-0/+1
| | | | | | | This suppresses bogus warnings about modules installed into a directory not in sys.path. Bugfix candidate.
* Add unlisted Boolean options. Thomas H., can you please check that IAndrew M. Kuchling2002-03-211-1/+2
| | | | | | got this right? Bugfix candidate, unless Thomas notes a problem.
* First version which runs an install-script (specified by theThomas Heller2002-02-201-314/+354
| | | | | | | | | | | | | | | | | | | --install-script ... command line option to bdist_wininst) at the end of the installation and at the start of deinstallation. Output (stdout, stderr) of the script (if any) is displayed in the last screen at installation, or in a simple message box at deinstallation. sys.argv[1] for the script will contain '-install' at installation time or '-remove' at deinstallation time. The installation script runs in an environment (embedded by the bdist_wininst runtime) where an additional function is available as builtin: create_shortcut(path, description, filename, [arguments[, workdir[, iconpath, iconindex]]]) Recreated this file after source changes.
* Patch #414775: Add --skip-build option to bdist command.Martin v. Löwis2002-01-121-1/+6
|
* Recreated after source changes.Thomas Heller2001-12-181-284/+284
|
* Second part of fix for bug [#483982] Python 2.2b2 bdist_wininstThomas Heller2001-12-181-3/+6
| | | | | | | | | | | | crashes. If no external zip-utility is found, the archive is created by the zipfile module, which behaves different now than in 2.1: if the zip-file is created in the root directory if the distribution, it will contain an (empty) version of itself. This triggered the above bug - so it's better to create the zip-file far away in the TMP directory.
* Whitespace normalization.Fred Drake2001-12-061-1/+1
|
* Explicitely list the metadata attributes to showThomas Heller2001-10-051-295/+304
| | | | | in the gui. Updated to include the new exe-file.
* Implement PEP250: Use Lib/site-packages under windows.Thomas Heller2001-09-051-311/+306
| | | | | | | | | bdist_wininst doesn't use the NT SCHEME any more, instead a custom SCHEME is used, which is exchanged at installation time, depending on the python version used. Avoid a bogus warning frpom install_lib about installing into a directory not on sys.path.
* dummy checkin for testing, please ignoreunknown2001-07-041-1/+0
|
* Since bdist_wininst.py contains the installer executable, it had to beThomas Heller2001-04-101-262/+262
| | | | rebuild.
* The bdist_wininst.py command has been recreated after wininst.exeThomas Heller2001-03-161-272/+308
| | | | | | | | | | | | has been changed to include an uninstaller. I forgot to mention in the uninstaller checkin that the logfile name (used for uninstalling) has been changed from <module>.log to <module>-wininst.log. This should prevent conflicts with a distutils logfile serving the same purpose. The short form of the --bdist-dir (-d) option has been removed because it caused conflicts with the short form of the --dist-dir option.
* Enhancements to the bdist_wininst command:Thomas Heller2001-02-191-265/+282
| | | | | | | | | | | | | | | | | --bitmap command line option allows to use a different bitmap file instead of the build-in python powered logo. --title lets you specify the text to display on the background. The editbox in the first screen now longer is selected (highlighted), it had the WS_TABSTOP flag. This is the patch http://sourceforge.net/patch/?func=detailpatch&patch_id=103687&group_id=5470 with two changes: 1. No messagebox displayed when the compilation to .pyc or .pyo files failes, this will only confuse the user (and it will fail under certain cases, where sys.path contains garbage). 2. A debugging print statement was removed from bdist_wininst.py.
* Recreated after installer source code changes.Thomas Heller2000-10-121-246/+246
| | | | | This should close SF bug (patch) http://sourceforge.net/patch/?func=detailpatch&patch_id=101844&group_id=5470
* Standardized whitespace around function calls.Greg Ward2000-09-301-44/+44
|
* Removed the extra_dirs and path_file metadata options.Thomas Heller2000-09-291-270/+260
| | | | | | | | | | | | | They are unneeded: All this stuff is already done by the install command which is run by bdist_wininst. One bug has been fixed: The root of the fake install tree is install.install_purelib, not install.install_lib! They are different if the extra_path option is used in the setup function. Rebuild after the changes to wininst.exe.
* Added 'boolean_options' list to support config file parsing.Greg Ward2000-09-251-0/+2
|
* Tweak what happens when run on non-Windows platforms: set install prefixGreg Ward2000-09-221-10/+5
| | | | | as well as scheme, and don't convert all installation paths (that's now done by the "install" command for us).
* 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.
* Renamed --keep-tree to --keep-temp.Greg Ward2000-09-161-3/+3
|
* 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
* 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)
* Fix line-endings.Greg Ward2000-08-271-1/+1
| | | | Fix bad operator precedence: should be "(metadata or '') + '\n'".