Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8d65681e
Commit
8d65681e
authored
Jul 10, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce DISTUTILS_USE_SDK as a flag to determine whether the
SDK environment should be used. Fixes #1508010.
parent
56640df6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
Doc/dist/dist.tex
Doc/dist/dist.tex
+14
-3
Lib/distutils/msvccompiler.py
Lib/distutils/msvccompiler.py
+1
-1
Misc/NEWS
Misc/NEWS
+4
-0
No files found.
Doc/dist/dist.tex
View file @
8d65681e
...
...
@@ -2873,9 +2873,20 @@ C compiler:
\modulesynopsis
{
Microsoft Compiler
}
This module provides
\class
{
MSVCCompiler
}
, an implementation of the abstract
\class
{
CCompiler
}
class for Microsoft Visual Studio. It should also work using
the freely available compiler provided as part of the .Net SDK download. XXX
download link.
\class
{
CCompiler
}
class for Microsoft Visual Studio. Typically, extension
modules need to be compiled with the same compiler that was used to compile
Python. For Python 2.3 and earlier, the compiler was Visual Studio 6. For
Python 2.4 and 2.5, the compiler is Visual Studio .NET 2003. The AMD64
and Itanium binaries are created using the Platform SDK.
\class
{
MSVCCompiler
}
will normally choose the right compiler, linker etc.
on its own. To override this choice, the environment variables
\var
{
DISTUTILS
\_
USE
\_
SDK
}
and
\var
{
MSSdk
}
must be both set.
\var
{
MSSdk
}
indicates that the current environment has been setup by the SDK's
\code
{
SetEnv.Cmd
}
script, or that the environment variables had been
registered when the SDK was installed;
\var
{
DISTUTILS
\_
USE
\_
SDK
}
indicates
that the distutils user has made an explicit choice to override the
compiler selection by
\class
{
MSVCCompiler
}
.
\section
{
\module
{
distutils.bcppcompiler
}
--- Borland Compiler
}
\declaremodule
{
standard
}{
distutils.bcppcompiler
}
...
...
Lib/distutils/msvccompiler.py
View file @
8d65681e
...
...
@@ -237,7 +237,7 @@ class MSVCCompiler (CCompiler) :
def initialize(self):
self.__paths = []
if os.environ.has_key("
MSSdk
") and self.find_exe("
cl
.
exe
"):
if os.environ.has_key("
DISTUTILS_USE_SDK
") and os.environ.has_key("
MSSdk
") and self.find_exe("
cl
.
exe
"):
# Assume that the SDK set up everything alright; don't try to be
# smarter
self.cc = "
cl
.
exe
"
...
...
Misc/NEWS
View file @
8d65681e
...
...
@@ -39,6 +39,10 @@ Core and builtins
Library
-------
-
Bug
#
1508010
:
msvccompiler
now
requires
the
DISTUTILS_USE_SDK
environment
variable
to
be
set
in
order
to
the
SDK
environment
for
finding
the
compiler
,
include
files
,
etc
.
-
Bug
#
1515998
:
Properly
generate
logical
ids
for
files
in
bdist_msi
.
-
warnings
.
py
now
ignores
ImportWarning
by
default
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment