mirror of
https://github.com/python/cpython.git
synced 2026-01-20 22:30:28 +00:00
Currently, the cygwinccompiler.py compiler handling in distutils is invoking the cygwin and mingw compilers with the -static option. Logically, this means that the linker should choose to link to static libraries instead of shared/dynamically linked libraries. Current win32 binutils expect import libraries to have a .dll.a suffix and static libraries to have .a suffix. If -static is passed, it will skip the .dll.a libraries. This is pain if one has a tree with both static and dynamic libraries using this naming convention, and wish to use the dynamic libraries. The -static option being passed in distutils is to get around a bug in old versions of binutils where it would get confused when it found the DLLs themselves. The decision to use static or shared libraries is site or package specific, and should be left to the setup script or to command line options. |
||
|---|---|---|
| .. | ||
| 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$