Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2507e29a
Unverified
Kaydet (Commit)
2507e29a
authored
Ock 18, 2018
tarafından
Steve Dower
Kaydeden (comit)
GitHub
Ock 18, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-32588: Move _findvs into its own module and add missing _queue module to installer (#5227)
üst
fa788060
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
133 additions
and
24 deletions
+133
-24
_msvccompiler.py
Lib/distutils/_msvccompiler.py
+2
-2
bdist_wininst.py
Lib/distutils/command/bdist_wininst.py
+4
-5
2018-01-18-14-56-45.bpo-32588.vHww6F.rst
...S.d/next/Windows/2018-01-18-14-56-45.bpo-32588.vHww6F.rst
+2
-0
_findvs.cpp
PC/_findvs.cpp
+4
-9
config.c
PC/config.c
+0
-3
_distutils_findvs.vcxproj
PCbuild/_distutils_findvs.vcxproj
+83
-0
_distutils_findvs.vcxproj.filters
PCbuild/_distutils_findvs.vcxproj.filters
+17
-0
pcbuild.proj
PCbuild/pcbuild.proj
+1
-1
pcbuild.sln
PCbuild/pcbuild.sln
+19
-1
pythoncore.vcxproj
PCbuild/pythoncore.vcxproj
+0
-2
lib_files.wxs
Tools/msi/lib/lib_files.wxs
+1
-1
No files found.
Lib/distutils/_msvccompiler.py
Dosyayı görüntüle @
2507e29a
...
...
@@ -56,7 +56,7 @@ def _find_vc2015():
return
best_version
,
best_dir
def
_find_vc2017
():
import
_findvs
import
_
distutils_
findvs
import
threading
best_version
=
0
,
# tuple for full version comparisons
...
...
@@ -66,7 +66,7 @@ def _find_vc2017():
# initialize COM.
all_packages
=
[]
def
_getall
():
all_packages
.
extend
(
_findvs
.
findall
())
all_packages
.
extend
(
_
distutils_
findvs
.
findall
())
t
=
threading
.
Thread
(
target
=
_getall
)
t
.
start
()
t
.
join
()
...
...
Lib/distutils/command/bdist_wininst.py
Dosyayı görüntüle @
2507e29a
...
...
@@ -337,11 +337,10 @@ class bdist_wininst(Command):
# cross-building, so assume the latest version
bv
=
'14.0'
else
:
bv
=
'.'
.
join
(
CRT_ASSEMBLY_VERSION
.
split
(
'.'
,
2
)[:
2
])
if
bv
in
(
'14.11'
,
'14.12'
):
# v142, v141 and v140 are binary compatible,
# so keep using the 14.0 stub.
bv
=
'14.0'
# as far as we know, CRT is binary compatible based on
# the first field, so assume 'x.0' until proven otherwise
major
=
CRT_ASSEMBLY_VERSION
.
partition
(
'.'
)[
0
]
bv
=
major
+
'.0'
# wininst-x.y.exe is in the same directory as this file
...
...
Misc/NEWS.d/next/Windows/2018-01-18-14-56-45.bpo-32588.vHww6F.rst
0 → 100644
Dosyayı görüntüle @
2507e29a
Create standalone _distutils_findvs module and add missing _queue module to
installer.
PC/_findvs.cpp
Dosyayı görüntüle @
2507e29a
...
...
@@ -12,10 +12,6 @@
#include <Windows.h>
#include <Strsafe.h>
#include "external\include\Setup.Configuration.h"
#pragma comment(lib, "ole32.lib")
#pragma comment(lib, "oleaut32.lib")
#pragma comment(lib, "version.lib")
#pragma comment(lib, "Microsoft.VisualStudio.Setup.Configuration.Native.lib")
#include <Python.h>
...
...
@@ -236,7 +232,7 @@ static int exec_findvs(PyObject *module)
return
0
;
// success
}
PyDoc_STRVAR
(
findvs_doc
,
"The _findvs helper module"
);
PyDoc_STRVAR
(
findvs_doc
,
"The _
distutils_
findvs helper module"
);
static
PyModuleDef_Slot
findvs_slots
[]
=
{
{
Py_mod_exec
,
exec_findvs
},
...
...
@@ -245,7 +241,7 @@ static PyModuleDef_Slot findvs_slots[] = {
static
PyModuleDef
findvs_def
=
{
PyModuleDef_HEAD_INIT
,
"_findvs"
,
"_
distutils_
findvs"
,
findvs_doc
,
0
,
// m_size
NULL
,
// m_methods
...
...
@@ -256,8 +252,8 @@ static PyModuleDef findvs_def = {
};
extern
"C"
{
PyMODINIT_FUNC
PyInit__findvs
(
void
)
PyMODINIT_FUNC
PyInit__
distutils_
findvs
(
void
)
{
return
PyModuleDef_Init
(
&
findvs_def
);
}
}
\ No newline at end of file
}
PC/config.c
Dosyayı görüntüle @
2507e29a
...
...
@@ -69,7 +69,6 @@ extern PyObject* _PyWarnings_Init(void);
extern
PyObject
*
PyInit__string
(
void
);
extern
PyObject
*
PyInit__stat
(
void
);
extern
PyObject
*
PyInit__opcode
(
void
);
extern
PyObject
*
PyInit__findvs
(
void
);
/* tools/freeze/makeconfig.py marker for additional "extern" */
/* -- ADDMODULE MARKER 1 -- */
...
...
@@ -162,8 +161,6 @@ struct _inittab _PyImport_Inittab[] = {
{
"_stat"
,
PyInit__stat
},
{
"_opcode"
,
PyInit__opcode
},
{
"_findvs"
,
PyInit__findvs
},
/* Sentinel */
{
0
,
0
}
};
PCbuild/_distutils_findvs.vcxproj
0 → 100644
Dosyayı görüntüle @
2507e29a
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup
Label=
"ProjectConfigurations"
>
<ProjectConfiguration
Include=
"Debug|Win32"
>
<Configuration>
Debug
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Debug|x64"
>
<Configuration>
Debug
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"PGInstrument|Win32"
>
<Configuration>
PGInstrument
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"PGInstrument|x64"
>
<Configuration>
PGInstrument
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"PGUpdate|Win32"
>
<Configuration>
PGUpdate
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"PGUpdate|x64"
>
<Configuration>
PGUpdate
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|Win32"
>
<Configuration>
Release
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|x64"
>
<Configuration>
Release
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup
Label=
"Globals"
>
<ProjectGuid>
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}
</ProjectGuid>
<RootNamespace>
_distutils_findvs
</RootNamespace>
<Keyword>
Win32Proj
</Keyword>
</PropertyGroup>
<Import
Project=
"python.props"
/>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.Default.props"
/>
<PropertyGroup
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<CharacterSet>
NotSet
</CharacterSet>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.props"
/>
<PropertyGroup>
<TargetExt>
.pyd
</TargetExt>
</PropertyGroup>
<ImportGroup
Label=
"ExtensionSettings"
>
</ImportGroup>
<ImportGroup
Label=
"PropertySheets"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
<Import
Project=
"pyproject.props"
/>
</ImportGroup>
<PropertyGroup
Label=
"UserMacros"
/>
<PropertyGroup>
<_ProjectFileVersion>
10.0.30319.1
</_ProjectFileVersion>
</PropertyGroup>
<ItemDefinitionGroup>
<Link>
<AdditionalDependencies>
version.lib;ole32.lib;oleaut32.lib;Microsoft.VisualStudio.Setup.Configuration.Native.lib;%(AdditionalDependencies)
</AdditionalDependencies>
<AdditionalLibraryDirectories>
%(AdditionalLibraryDirectories);$(PySourcePath)PC\external\$(PlatformToolset)\$(ArchName)
</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile
Include=
"..\PC\_findvs.cpp"
/>
</ItemGroup>
<ItemGroup>
<ResourceCompile
Include=
"..\PC\python_nt.rc"
/>
</ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"pythoncore.vcxproj"
>
<Project>
{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}
</Project>
<ReferenceOutputAssembly>
false
</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
</ImportGroup>
</Project>
PCbuild/_distutils_findvs.vcxproj.filters
0 → 100644
Dosyayı görüntüle @
2507e29a
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup>
<ResourceCompile
Include=
"..\PC\python_nt.rc"
/>
</ItemGroup>
<ItemGroup>
<Filter
Include=
"Source Files"
>
<UniqueIdentifier>
{c56a5dd3-7838-48e9-a781-855d8be7370f}
</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"..\PC\_findvs.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file
PCbuild/pcbuild.proj
Dosyayı görüntüle @
2507e29a
...
...
@@ -49,7 +49,7 @@
<!-- pyshellext.dll -->
<Projects
Include=
"pyshellext.vcxproj"
/>
<!-- Extension modules -->
<ExtensionModules
Include=
"_asyncio;_ctypes;_decimal;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound"
/>
<ExtensionModules
Include=
"_asyncio;_ctypes;_decimal;_
distutils_findvs;_
elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound"
/>
<!-- Extension modules that require external sources -->
<ExternalModules
Include=
"_bz2;_lzma;_sqlite3"
/>
<!-- _ssl will build _socket as well, which may cause conflicts in parallel builds -->
...
...
PCbuild/pcbuild.sln
Dosyayı görüntüle @
2507e29a
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.2
6621.2
VisualStudioVersion = 15.0.2
7130.2024
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{553EC33E-9816-4996-A660-5D6186A0B0B3}"
ProjectSection(SolutionItems) = preProject
...
...
@@ -93,6 +93,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_queue", "_queue.vcxproj",
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblzma", "liblzma.vcxproj", "{12728250-16EC-4DC6-94D7-E21DD88947F8}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_distutils_findvs", "_distutils_findvs.vcxproj", "{41ADEDF9-11D8-474E-B4D7-BB82332C878E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
...
...
@@ -693,6 +695,22 @@ Global
{12728250-16EC-4DC6-94D7-E21DD88947F8}.Release|Win32.Build.0 = Release|Win32
{12728250-16EC-4DC6-94D7-E21DD88947F8}.Release|x64.ActiveCfg = Release|x64
{12728250-16EC-4DC6-94D7-E21DD88947F8}.Release|x64.Build.0 = Release|x64
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Debug|Win32.ActiveCfg = Debug|Win32
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Debug|Win32.Build.0 = Debug|Win32
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Debug|x64.ActiveCfg = Debug|x64
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Debug|x64.Build.0 = Debug|x64
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.PGInstrument|Win32.ActiveCfg = PGInstrument|Win32
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.PGInstrument|Win32.Build.0 = PGInstrument|Win32
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.PGInstrument|x64.ActiveCfg = PGInstrument|x64
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.PGInstrument|x64.Build.0 = PGInstrument|x64
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.PGUpdate|Win32.ActiveCfg = PGUpdate|Win32
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.PGUpdate|Win32.Build.0 = PGUpdate|Win32
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.PGUpdate|x64.ActiveCfg = PGUpdate|x64
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.PGUpdate|x64.Build.0 = PGUpdate|x64
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Release|Win32.ActiveCfg = Release|Win32
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Release|Win32.Build.0 = Release|Win32
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Release|x64.ActiveCfg = Release|x64
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
PCbuild/pythoncore.vcxproj
Dosyayı görüntüle @
2507e29a
...
...
@@ -75,7 +75,6 @@
</ClCompile>
<Link>
<AdditionalDependencies>
version.lib;shlwapi.lib;ws2_32.lib;%(AdditionalDependencies)
</AdditionalDependencies>
<AdditionalLibraryDirectories>
%(AdditionalLibraryDirectories);$(PySourcePath)PC\external\$(PlatformToolset)\$(ArchName)
</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
...
...
@@ -350,7 +349,6 @@
<ClCompile
Include=
"..\PC\config.c"
/>
<ClCompile
Include=
"..\PC\getpathp.c"
/>
<ClCompile
Include=
"..\PC\msvcrtmodule.c"
/>
<ClCompile
Include=
"..\PC\_findvs.cpp"
/>
<ClCompile
Include=
"..\Python\pyhash.c"
/>
<ClCompile
Include=
"..\Python\_warnings.c"
/>
<ClCompile
Include=
"..\Python\asdl.c"
/>
...
...
Tools/msi/lib/lib_files.wxs
Dosyayı görüntüle @
2507e29a
<?xml version="1.0" encoding="UTF-8"?>
<Wix
xmlns=
"http://schemas.microsoft.com/wix/2006/wi"
>
<?define exts=pyexpat;select;unicodedata;winsound;_bz2;_elementtree;_socket;_ssl;_msi;_ctypes;_hashlib;_multiprocessing;_lzma;_decimal;_overlapped;_sqlite3;_asyncio ?>
<?define exts=pyexpat;select;unicodedata;winsound;_bz2;_elementtree;_socket;_ssl;_msi;_ctypes;_hashlib;_multiprocessing;_lzma;_decimal;_overlapped;_sqlite3;_asyncio
;_queue;_distutils_findvs
?>
<Fragment>
<ComponentGroup
Id=
"lib_extensions"
>
<?foreach ext in $(var.exts)?>
...
...
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