mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
![]() On cygwin, the setup.py script uses unixccompiler.py for compiling and linking C extensions. The unixccompiler.py script assumes that executables do not get special extensions, which makes sense for Unix. However, on Cygwin, executables get an .exe extension. This causes a problem during the configuration step (python setup.py config), in which some temporary executables may be generated. As unixccompiler.py does not know about the .exe extension, distutils fails to clean up after itself: it does not remove _configtest.exe but tries to remove _configtest instead. The attached patch to unixccompiler.py sets the correct exe_extension for cygwin by checking if sys.platform is 'cygwin'. With this patch, distutils cleans up after itself correctly. Michiel de Hoon University of Tokyo, Human Genome Center. |
||
---|---|---|
.. | ||
command | ||
__init__.py | ||
archive_util.py | ||
bcppcompiler.py | ||
ccompiler.py | ||
cmd.py | ||
core.py | ||
cygwinccompiler.py | ||
debug.py | ||
dep_util.py | ||
dir_util.py | ||
dist.py | ||
emxccompiler.py | ||
errors.py | ||
extension.py | ||
fancy_getopt.py | ||
file_util.py | ||
filelist.py | ||
log.py | ||
msvccompiler.py | ||
mwerkscompiler.py | ||
README | ||
spawn.py | ||
sysconfig.py | ||
text_file.py | ||
unixccompiler.py | ||
util.py | ||
version.py |
This directory contains only a subset of the Distutils, specifically the Python modules in the 'distutils' and 'distutils.command' packages. This is all you need to distribute and install Python modules using the Distutils. There is also a separately packaged standalone version of the Distutils available for people who want to upgrade the Distutils without upgrading Python, available from the Distutils web page: http://www.python.org/sigs/distutils-sig/ The standalone version includes all of the code in this directory, plus documentation, test scripts, examples, etc. The Distutils documentation is divided into two documents, "Installing Python Modules", which explains how to install Python packages, and "Distributing Python Modules", which explains how to write setup.py files. Both documents are part of the standard Python documentation set, and are available from http://www.python.org/doc/current/ . Greg Ward (gward@python.net) $Id$