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
ab4c0545
Commit
ab4c0545
authored
Aug 03, 2004
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #870382: Automatically add msvcr71 to the list of libraries if
Python was built with VC 7.1.
parent
ab63210e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
cygwinccompiler.py
cygwinccompiler.py
+23
-0
No files found.
cygwinccompiler.py
View file @
ab4c0545
...
...
@@ -122,6 +122,17 @@ class CygwinCCompiler (UnixCCompiler):
"Consider upgrading to a newer version of gcc"
)
else
:
self
.
dll_libraries
=
[]
# Include the appropriate MSVC runtime library if Python was built
# with MSVC 7.0 or 7.1.
msc_pos
=
sys
.
version
.
find
(
'MSC v.'
)
if
msc_pos
!=
-
1
:
msc_ver
=
sys
.
version
[
msc_pos
+
6
:
msc_pos
+
10
]
if
msc_ver
==
'1300'
:
# MSVC 7.0
self
.
dll_libraries
=
[
'msvcr70'
]
elif
msc_ver
==
'1310'
:
# MSVC 7.1
self
.
dll_libraries
=
[
'msvcr71'
]
# __init__ ()
...
...
@@ -308,6 +319,18 @@ class Mingw32CCompiler (CygwinCCompiler):
# no additional libraries needed
self
.
dll_libraries
=
[]
# Include the appropriate MSVC runtime library if Python was built
# with MSVC 7.0 or 7.1.
msc_pos
=
sys
.
version
.
find
(
'MSC v.'
)
if
msc_pos
!=
-
1
:
msc_ver
=
sys
.
version
[
msc_pos
+
6
:
msc_pos
+
10
]
if
msc_ver
==
'1300'
:
# MSVC 7.0
self
.
dll_libraries
=
[
'msvcr70'
]
elif
msc_ver
==
'1310'
:
# MSVC 7.1
self
.
dll_libraries
=
[
'msvcr71'
]
# __init__ ()
# class Mingw32CCompiler
...
...
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