Skip to content

Initial creation of the IronPython SDK #1928

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion IronPython.sln
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuget", "nuget", "{EE77D917
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IronPython.Console32", "src\executables\IronPython.Console32\IronPython.Console32.csproj", "{AD21022F-E7C1-4B74-97C1-0A0E48EFF992}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IronPython.Analyzer", "src\roslyn\IronPython.Analyzer\IronPython.Analyzer.csproj", "{DA3415F3-6922-42D0-93D7-BEE2E8603A18}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IronPython.Analyzer", "src\tooling\IronPython.Analyzer\IronPython.Analyzer.csproj", "{DA3415F3-6922-42D0-93D7-BEE2E8603A18}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're changing the path you also need to update the csproj that are referencing it.

EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "choco", "choco", "{EA550FD8-2241-4131-8292-619D009E0199}"
ProjectSection(SolutionItems) = preProject
Expand Down Expand Up @@ -105,6 +105,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "msi", "msi", "{450F93D5-DF0
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IronPython.Window32", "src\executables\IronPython.Window32\IronPython.Window32.csproj", "{8F177DC2-9822-45BD-AB05-1F40FCA86168}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IronPython.Sdk", "src\tooling\IronPython.Sdk\IronPython.Sdk.csproj", "{726D85B8-E98E-4F31-A081-B02035809A33}"
EndProject
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "IronPython.Sdk.Sample", "tests\IronPython.Sdk.Sample\IronPython.Sdk.Sample.pyproj", "{C1E9ED5C-242E-4F90-8E69-7FDDE3C919BD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -171,6 +175,12 @@ Global
{8F177DC2-9822-45BD-AB05-1F40FCA86168}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F177DC2-9822-45BD-AB05-1F40FCA86168}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8F177DC2-9822-45BD-AB05-1F40FCA86168}.Release|Any CPU.Build.0 = Release|Any CPU
{726D85B8-E98E-4F31-A081-B02035809A33}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{726D85B8-E98E-4F31-A081-B02035809A33}.Debug|Any CPU.Build.0 = Debug|Any CPU
{726D85B8-E98E-4F31-A081-B02035809A33}.Release|Any CPU.ActiveCfg = Release|Any CPU
{726D85B8-E98E-4F31-A081-B02035809A33}.Release|Any CPU.Build.0 = Release|Any CPU
{C1E9ED5C-242E-4F90-8E69-7FDDE3C919BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C1E9ED5C-242E-4F90-8E69-7FDDE3C919BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
File renamed without changes.
10 changes: 10 additions & 0 deletions src/tooling/IronPython.Sdk/IronPython.Sdk.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
<PackageType>MSBuildSdk</PackageType>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
</PropertyGroup>
<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
</Project>
13 changes: 13 additions & 0 deletions src/tooling/IronPython.Sdk/Sdk/Debugging.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
</Project>
15 changes: 15 additions & 0 deletions src/tooling/IronPython.Sdk/Sdk/FileIncludes.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project>
<!-- Not much of this works right now -->
<PropertyGroup>
<StartupFile>Program.py</StartupFile>
<!--
<StartupFile Condition="Exists('main.py')">main.py</StartupFile>
<StartupFile Condition="Exists('main.py') and '$(StartupFile)' == ''">main.py</StartupFile>
-->
</PropertyGroup>
<!--
<ItemGroup>
<Compile Include="*.py" Exclude="obj\**;bin\**"/>
</ItemGroup>
-->
</Project>
11 changes: 11 additions & 0 deletions src/tooling/IronPython.Sdk/Sdk/PythonEngine.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project>
<PropertyGroup>
<ProjectHome>.</ProjectHome>
<SearchPath>
</SearchPath>
<WorkingDirectory>.</WorkingDirectory>
<OutputPath>.</OutputPath>
<Name>$(MSBuildProjectName)</Name>
<RootNamespace>$(Name)</RootNamespace>
</PropertyGroup>
</Project>
11 changes: 11 additions & 0 deletions src/tooling/IronPython.Sdk/Sdk/PythonTools.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
<!-- Uncomment the CoreCompile target to enable the Build command in
Visual Studio and specify your pre- and post-build commands in
the BeforeBuild and AfterBuild targets below. -->
<!--<Target Name="CoreCompile" />-->
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
</Project>
17 changes: 17 additions & 0 deletions src/tooling/IronPython.Sdk/Sdk/Sdk.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="Debugging.props" />
<Import Project="PythonTools.props" />
<Import Project="PythonEngine.props" />
<Import Project="FileIncludes.props" />
<PropertyGroup>
<!-- Default -->
<!--<InterpreterId>Global|$(PythonInterpreter)|$(PythonVersion)</InterpreterId>-->

<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>c1e9ed5c-242e-4f90-8e69-7fdde3c919bd</ProjectGuid>
</PropertyGroup>
<ItemGroup>
<InterpreterReference Include="Global|IronPython|3.4" />
<InterpreterReference Include="Global|PythonCore|3.12" />
</ItemGroup>
</Project>
11 changes: 11 additions & 0 deletions tests/IronPython.Sdk.Sample/IronPython.Sdk.Sample.pyproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project ToolsVersion="4.0">
<PropertyGroup>
<PythonInterpreter>IronPython</PythonInterpreter>
<PythonVersion>3.4</PythonVersion>
<InterpreterId>Global|IronPython|3.4</InterpreterId>
</PropertyGroup>
<ItemGroup>
<Compile Include="*.py" />
</ItemGroup>
<Import Project="..\..\src\tooling\IronPython.Sdk\Sdk\Sdk.props" />
</Project>
1 change: 1 addition & 0 deletions tests/IronPython.Sdk.Sample/Program.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello, World!")
Loading