Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
281cb13d
Commit
281cb13d
authored
May 25, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2879: rename _winreg to winreg.
parent
0c96212a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
msvc9compiler.py
msvc9compiler.py
+9
-9
msvccompiler.py
msvccompiler.py
+7
-7
No files found.
msvc9compiler.py
View file @
281cb13d
...
...
@@ -24,17 +24,17 @@ from distutils.ccompiler import (CCompiler, gen_preprocess_options,
from
distutils
import
log
from
distutils.util
import
get_platform
import
_
winreg
import
winreg
RegOpenKeyEx
=
_
winreg
.
OpenKeyEx
RegEnumKey
=
_
winreg
.
EnumKey
RegEnumValue
=
_
winreg
.
EnumValue
RegError
=
_
winreg
.
error
RegOpenKeyEx
=
winreg
.
OpenKeyEx
RegEnumKey
=
winreg
.
EnumKey
RegEnumValue
=
winreg
.
EnumValue
RegError
=
winreg
.
error
HKEYS
=
(
_
winreg
.
HKEY_USERS
,
_
winreg
.
HKEY_CURRENT_USER
,
_
winreg
.
HKEY_LOCAL_MACHINE
,
_
winreg
.
HKEY_CLASSES_ROOT
)
HKEYS
=
(
winreg
.
HKEY_USERS
,
winreg
.
HKEY_CURRENT_USER
,
winreg
.
HKEY_LOCAL_MACHINE
,
winreg
.
HKEY_CLASSES_ROOT
)
VS_BASE
=
r"Software\
Mic
rosoft\
Visu
alStudio\
%
0.1f"
WINSDK_BASE
=
r"Software\
Mic
rosoft\
Mic
rosoft SDKs\
Wi
ndows"
...
...
msvccompiler.py
View file @
281cb13d
...
...
@@ -20,15 +20,15 @@ from distutils import log
_can_read_reg
=
False
try
:
import
_
winreg
import
winreg
_can_read_reg
=
True
hkey_mod
=
_
winreg
hkey_mod
=
winreg
RegOpenKeyEx
=
_
winreg
.
OpenKeyEx
RegEnumKey
=
_
winreg
.
EnumKey
RegEnumValue
=
_
winreg
.
EnumValue
RegError
=
_
winreg
.
error
RegOpenKeyEx
=
winreg
.
OpenKeyEx
RegEnumKey
=
winreg
.
EnumKey
RegEnumValue
=
winreg
.
EnumValue
RegError
=
winreg
.
error
except
ImportError
:
try
:
...
...
@@ -44,7 +44,7 @@ except ImportError:
except
ImportError
:
log
.
info
(
"Warning: Can't read registry to find the "
"necessary compiler setting
\
n
"
"Make sure that Python modules
_
winreg, "
"Make sure that Python modules winreg, "
"win32api or win32con are installed."
)
pass
...
...
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