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
1f06a680
Commit
1f06a680
authored
Sep 06, 2017
by
Steve Dower
Committed by
GitHub
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add props file for nuget packages (#3410)
parent
d3b9f97e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
3 deletions
+76
-3
Tools/nuget/make_pkg.proj
Tools/nuget/make_pkg.proj
+14
-0
Tools/nuget/python.nuspec
Tools/nuget/python.nuspec
+2
-1
Tools/nuget/python.props
Tools/nuget/python.props
+56
-0
Tools/nuget/pythondaily.nuspec
Tools/nuget/pythondaily.nuspec
+2
-1
Tools/nuget/pythonx86.nuspec
Tools/nuget/pythonx86.nuspec
+2
-1
No files found.
Tools/nuget/make_pkg.proj
View file @
1f06a680
...
...
@@ -51,6 +51,20 @@
<Exec
Command=
"setlocal%0D%0A$(Environment)%0D%0A$(PythonArguments)"
/>
<Exec
Command=
"$(PipArguments)"
/>
<Exec
Command=
"$(PackageArguments)"
Condition=
"$(PackageArguments) != ''"
/>
<PropertyGroup>
<_PropsContents>
$([System.IO.File]::ReadAllText('python.props'))
</_PropsContents>
<_PropsContents>
$(_PropsContents.Replace('$$PYTHON_TAG$$', '$(MajorVersionNumber).$(MinorVersionNumber)'))
</_PropsContents>
<_PropsContents>
$(_PropsContents.Replace('$$PYTHON_VERSION$$', '$(NuspecVersion)'))
</_PropsContents>
<_PropsContents
Condition=
"$(Platform) == 'x86'"
>
$(_PropsContents.Replace('$$PYTHON_PLATFORM$$', 'Win32'))
</_PropsContents>
<_PropsContents
Condition=
"$(Platform) != 'x86'"
>
$(_PropsContents.Replace('$$PYTHON_PLATFORM$$', '$(Platform)'))
</_PropsContents>
<_PropsContents>
$(_PropsContents.Replace('$$PYTHON_TARGET$$', '_GetPythonRuntimeFilesDependsOn$(MajorVersionNumber)$(MinorVersionNumber)_$(Platform)'))
</_PropsContents>
<_ExistingContents
Condition=
"Exists('$(IntermediateOutputPath)\python.props')"
>
$([System.IO.File]::ReadAllText('$(IntermediateOutputPath)\python.props'))
</_ExistingContents>
</PropertyGroup>
<WriteLinesToFile
File=
"$(IntermediateOutputPath)\python.props"
Lines=
"$(_PropsContents)"
Condition=
"$(_PropsContents) != $(_ExistingContents)"
/>
<Exec
Command=
"$(NugetPackCommand) $(NugetArguments)"
/>
<Exec
Command=
"$(NugetPackSymbolsCommand) $(NugetArguments)"
Condition=
"$(NugetPackSymbolsCommand) != ''"
/>
</Target>
...
...
Tools/nuget/python.nuspec
View file @
1f06a680
...
...
@@ -13,6 +13,7 @@
<tags>
python
</tags>
</metadata>
<files>
<file
src=
"**\*"
target=
"tools"
/>
<file
src=
"**\*"
exclude=
"python.props"
target=
"tools"
/>
<file
src=
"python.props"
target=
"build\native"
/>
</files>
</package>
Tools/nuget/python.props
0 → 100644
View file @
1f06a680
<?xml version="1.0" encoding="utf-8"?>
<Project
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup
Condition=
"$(Platform) == '$$PYTHON_PLATFORM$$'"
>
<PythonHome>
$(MSBuildThisFileDirectory)\..\..\tools
</PythonHome>
<PythonInclude>
$(PythonHome)\include
</PythonInclude>
<PythonLibs>
$(PythonHome)\libs
</PythonLibs>
<PythonTag>
$$PYTHON_TAG$$
</PythonTag>
<PythonVersion>
$$PYTHON_VERSION$$
</PythonVersion>
<IncludePythonExe
Condition=
"$(IncludePythonExe) == ''"
>
true
</IncludePythonExe>
<IncludeDistutils
Condition=
"$(IncludeDistutils) == ''"
>
false
</IncludeDistutils>
<IncludeLib2To3
Condition=
"$(IncludeLib2To3) == ''"
>
false
</IncludeLib2To3>
<IncludeVEnv
Condition=
"$(IncludeVEnv) == ''"
>
false
</IncludeVEnv>
<GetPythonRuntimeFilesDependsOn>
$$PYTHON_TARGET$$;$(GetPythonRuntimeFilesDependsOn)
</GetPythonRuntimeFilesDependsOn>
</PropertyGroup>
<ItemDefinitionGroup
Condition=
"$(Platform) == '$$PYTHON_PLATFORM$$'"
>
<ClCompile>
<AdditionalIncludeDirectories>
$(PythonInclude);%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<RuntimeLibrary>
MultiThreadedDLL
</RuntimeLibrary>
</ClCompile>
<Link>
<AdditionalLibraryDirectories>
$(PythonLibs);%(AdditionalLibraryDirectories)
</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<Target
Name=
"GetPythonRuntimeFiles"
Returns=
"@(PythonRuntime)"
DependsOnTargets=
"$(GetPythonRuntimeFilesDependsOn)"
/>
<Target
Name=
"$$PYTHON_TARGET$$"
Returns=
"@(PythonRuntime)"
>
<ItemGroup>
<_PythonRuntimeExe
Include=
"$(PythonHome)\python*.dll"
/>
<_PythonRuntimeExe
Include=
"$(PythonHome)\vcruntime140.dll"
/>
<_PythonRuntimeExe
Include=
"$(PythonHome)\python*.exe"
Condition=
"$(IncludePythonExe) == 'true'"
/>
<_PythonRuntimeExe>
<Link>
%(Filename)%(Extension)
</Link>
</_PythonRuntimeExe>
<_PythonRuntimeDlls
Include=
"$(PythonHome)\DLLs\*.pyd"
/>
<_PythonRuntimeDlls
Include=
"$(PythonHome)\DLLs\*.dll"
/>
<_PythonRuntimeDlls>
<Link>
DLLs\%(Filename)%(Extension)
</Link>
</_PythonRuntimeDlls>
<_PythonRuntimeLib
Include=
"$(PythonHome)\Lib\**\*"
Exclude=
"$(PythonHome)\Lib\**\*.pyc;$(PythonHome)\Lib\site-packages\**\*"
/>
<_PythonRuntimeLib
Remove=
"$(PythonHome)\Lib\distutils\**\*"
Condition=
"$(IncludeDistutils) != 'true'"
/>
<_PythonRuntimeLib
Remove=
"$(PythonHome)\Lib\lib2to3\**\*"
Condition=
"$(IncludeLib2To3) != 'true'"
/>
<_PythonRuntimeLib
Remove=
"$(PythonHome)\Lib\ensurepip\**\*"
Condition=
"$(IncludeVEnv) != 'true'"
/>
<_PythonRuntimeLib
Remove=
"$(PythonHome)\Lib\venv\**\*"
Condition=
"$(IncludeVEnv) != 'true'"
/>
<_PythonRuntimeLib>
<Link>
Lib\%(RecursiveDir)%(Filename)%(Extension)
</Link>
</_PythonRuntimeLib>
<PythonRuntime
Include=
"@(_PythonRuntimeExe);@(_PythonRuntimeDlls);@(_PythonRuntimeLib)"
/>
</ItemGroup>
<Message
Importance=
"low"
Text=
"Collected Python runtime from $(PythonHome):%0D%0A@(PythonRuntime->' %(Link)','%0D%0A')"
/>
</Target>
</Project>
Tools/nuget/pythondaily.nuspec
View file @
1f06a680
...
...
@@ -13,6 +13,7 @@
<tags>
python
</tags>
</metadata>
<files>
<file
src=
"**\*"
target=
"tools"
/>
<file
src=
"**\*"
exclude=
"python.props"
target=
"tools"
/>
<file
src=
"python.props"
target=
"build\native"
/>
</files>
</package>
Tools/nuget/pythonx86.nuspec
View file @
1f06a680
...
...
@@ -13,6 +13,7 @@
<tags>
python
</tags>
</metadata>
<files>
<file
src=
"**\*"
target=
"tools"
/>
<file
src=
"**\*"
exclude=
"python.props"
target=
"tools"
/>
<file
src=
"python.props"
target=
"build\native"
/>
</files>
</package>
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