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
4c70d9f7
Commit
4c70d9f7
authored
Feb 02, 2019
by
Steve Dower
Committed by
GitHub
Feb 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34691: Compile _contextvars module into main Python library (GH-11741)
parent
b82bfac4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
95 deletions
+8
-95
Misc/NEWS.d/next/Build/2019-02-02-13-34-05.bpo-34691.B-Lsj4.rst
...EWS.d/next/Build/2019-02-02-13-34-05.bpo-34691.B-Lsj4.rst
+2
-0
PC/config.c
PC/config.c
+4
-0
PCbuild/_contextvars.vcxproj
PCbuild/_contextvars.vcxproj
+0
-77
PCbuild/_contextvars.vcxproj.filters
PCbuild/_contextvars.vcxproj.filters
+0
-16
PCbuild/pcbuild.proj
PCbuild/pcbuild.proj
+1
-1
Tools/msi/lib/lib_files.wxs
Tools/msi/lib/lib_files.wxs
+1
-1
No files found.
Misc/NEWS.d/next/Build/2019-02-02-13-34-05.bpo-34691.B-Lsj4.rst
0 → 100644
View file @
4c70d9f7
The _contextvars module is now built into the core Python library on
Windows.
PC/config.c
View file @
4c70d9f7
...
...
@@ -72,6 +72,8 @@ extern PyObject* PyInit__string(void);
extern
PyObject
*
PyInit__stat
(
void
);
extern
PyObject
*
PyInit__opcode
(
void
);
extern
PyObject
*
PyInit__contextvars
(
void
);
/* tools/freeze/makeconfig.py marker for additional "extern" */
/* -- ADDMODULE MARKER 1 -- */
...
...
@@ -164,6 +166,8 @@ struct _inittab _PyImport_Inittab[] = {
{
"_stat"
,
PyInit__stat
},
{
"_opcode"
,
PyInit__opcode
},
{
"_contextvars"
,
PyInit__contextvars
},
/* Sentinel */
{
0
,
0
}
};
PCbuild/_contextvars.vcxproj
deleted
100644 → 0
View file @
b82bfac4
<?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>
{B8BF1D81-09DC-42D4-B406-4F868B33A89E}
</ProjectGuid>
<RootNamespace>
_contextvars
</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>
<ItemGroup>
<ClCompile
Include=
"..\Modules\_contextvarsmodule.c"
/>
</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/_contextvars.vcxproj.filters
deleted
100644 → 0
View file @
b82bfac4
<?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>
{7CBD8910-233D-4E9A-9164-9BA66C1F0E6D}
</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"..\Modules\_contextvarsmodule.c"
>
<Filter>
Source Files
</Filter>
</ClCompile>
</ItemGroup>
</Project>
PCbuild/pcbuild.proj
View file @
4c70d9f7
...
...
@@ -50,7 +50,7 @@
<!-- pyshellext.dll -->
<Projects
Include=
"pyshellext.vcxproj"
/>
<!-- Extension modules -->
<ExtensionModules
Include=
"_asyncio;_c
ontextvars;_c
types;_decimal;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound"
/>
<ExtensionModules
Include=
"_asyncio;_ctypes;_decimal;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound"
/>
<!-- Extension modules that require external sources -->
<ExternalModules
Include=
"_bz2;_lzma;_sqlite3"
/>
<!-- venv launchers -->
...
...
Tools/msi/lib/lib_files.wxs
View file @
4c70d9f7
<?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;_queue
;_contextvars
?>
<?define exts=pyexpat;select;unicodedata;winsound;_bz2;_elementtree;_socket;_ssl;_msi;_ctypes;_hashlib;_multiprocessing;_lzma;_decimal;_overlapped;_sqlite3;_asyncio;_queue ?>
<Fragment>
<DirectoryRef
Id=
"Lib_venv_scripts_nt"
/>
...
...
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