Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates for packaging from ipy2 (with changes for ipy3) (#407)
- Loading branch information
Showing
20 changed files
with
271 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<Target Name="ChocoPackage" Condition="'$(OS)' != 'Unix' " AfterTargets="Package" | ||
Outputs="$(PackageDir)\ironpython.chocolatey.$(PackageVersion).nupkg"> | ||
<PropertyGroup> | ||
<ChocolateyVersion>0.10.8</ChocolateyVersion> | ||
</PropertyGroup> | ||
<Exec Command="$(NuGet) install chocolatey -Version $(ChocolateyVersion) -OutputDirectory "$(RootDir)packages" -Source https://api.nuget.org/v3/index.json" /> | ||
<Exec Command="$(RootDir)packages\chocolatey.$(ChocolateyVersion)\tools\chocolateyInstall\choco.exe pack -r "$(RootDir)Package\choco\IronPython.nuspec" --outputdirectory "$(StageDir)" --version $(PackageVersion) STAGEDIR="$(StageDir)"" /> | ||
<Move SourceFiles="$(StageDir)\ironpython3.$(PackageVersion).nupkg" DestinationFiles="$(PackageDir)\ironpython3.chocolatey.$(PackageVersion).nupkg" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
VERIFICATION Verification is intended to assist the Chocolatey moderators and community in verifying that this package's contents are trustworthy. | ||
|
||
This package is published by the IronPython Project itself. The binaries are identical to other package types published by the project, in particular the IronPython nuget package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Package: ironpython3 | ||
Version: {xxx} | ||
Priority: optional | ||
Architecture: all | ||
Depends: mono-runtime (>=5.12), libmono-posix4.0-cil (>=5.12) | ||
Section: python | ||
Description: Implementation of the Python 3.4 language | ||
on the .NET Framework (IRON -> Implementation Runs on .NET). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<Target Name="DebPackage" Condition="'$(OS)' == 'Unix' AND '$(MacOS)' != 'true'" AfterTargets="Package"> | ||
<PropertyGroup> | ||
<TempFolder>temp</TempFolder> | ||
<PackageDebFolder>Package/deb</PackageDebFolder> | ||
<PackageTempFolder>$(PackageDebFolder)/$(TempFolder)</PackageTempFolder> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<StdLibFiles Include="$(StageDir)/Lib/**/*.*" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ApplicationFiles Include="$(StageDir)/net45/*.exe" /> | ||
<ApplicationFiles Include="$(StageDir)/net45/**/*.dll" Exclude="IronPythonTest.dll" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ScriptFiles Include="$(PackageDebFolder)/ipy*" /> | ||
</ItemGroup> | ||
|
||
<!-- Build the application deb --> | ||
<Exec Command="chmod 777 $(StageDir)/net45/*.exe" /> | ||
<Exec Command="rm -rf $(PackageTempFolder)" /> | ||
<Exec Command="mkdir -p $(PackageTempFolder)/DEBIAN" /> | ||
<Exec Command="cp $(PackageDebFolder)/DEBIAN/* $(PackageTempFolder)/DEBIAN"/> | ||
|
||
<FileUpdate Files="$(PackageTempFolder)/DEBIAN/control" | ||
Regex="{xxx}" | ||
ReplacementText="$(PackageVersion)" /> | ||
|
||
<ItemGroup> | ||
<StdLibOutputFiles Include="$(StageDir)/Lib/**/*.py" /> | ||
</ItemGroup> | ||
<Exec Command="dos2unix %(StdLibOutputFiles.Identity)" /> | ||
<Exec Command="dos2unix $(PackageTempFolder)/DEBIAN/control"/> | ||
|
||
<Copy SourceFiles="@(ScriptFiles)" DestinationFolder="$(PackageTempFolder)/usr/bin/"/> | ||
<Copy SourceFiles="@(ApplicationFiles)" DestinationFolder="$(PackageTempFolder)/usr/share/ironpython2.7/%(ApplicationFiles.RecursiveDir)"/> | ||
<Copy SourceFiles="@(StdLibFiles)" DestinationFolder="$(PackageTempFolder)/usr/lib/ironpython2.7/%(StdLibFiles.RecursiveDir)"/> | ||
|
||
<Exec Command="fakeroot dpkg-deb -v --build $(PackageTempFolder)"/> | ||
<Copy | ||
SourceFiles="$(PackageDebFolder)/$(TempFolder).deb" | ||
DestinationFiles="$(PackageDir)/ironpython_$(PackageVersion).deb"/> | ||
<Delete Files="$(PackageDebFolder)/$(TempFolder).deb"/> | ||
|
||
<RemoveDir Directories="$(PackageTempFolder)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ipy3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ipy3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
/usr/bin/mono /usr/share/ironpython3.4/ipy.exe $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<Target Name="MsiPackage" Condition="'$(OS)' != 'Unix' " AfterTargets="Package"> | ||
<ItemGroup> | ||
<CleanupFiles Include="$(StageDir)\net45\IronPythonTest.dll"/> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<WixVersion>3.11.1</WixVersion> | ||
</PropertyGroup> | ||
<Delete Files="@(CleanupFiles)" /> | ||
<Exec Command="$(NuGet) install wix -Version $(WixVersion) -OutputDirectory "$(RootDir)packages" -Source https://api.nuget.org/v3/index.json" /> | ||
<MSBuild | ||
Projects="$(RootDir)Package\msi\IronPython.Installer.wixproj" | ||
Properties="BindInputPaths=$(StageDir);OutputPath=$(PackageDir);Configuration=$(BuildFlavour);Platform=x64" | ||
/> | ||
</Target> | ||
</Project> |
Oops, something went wrong.