Browse Source

Added some missing IronPython files.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4366 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 16 years ago
parent
commit
0edfe8266f
  1. 2
      src/AddIns/BackendBindings/Python/PythonBinding.sln
  2. 19
      src/AddIns/BackendBindings/Python/PythonBinding/Project/Lib/__future__.py
  3. 31
      src/AddIns/BackendBindings/Python/PythonBinding/Project/Lib/runpy.py
  4. 14
      src/AddIns/BackendBindings/Python/PythonBinding/Project/Lib/site.py
  5. 10
      src/AddIns/BackendBindings/Python/PythonBinding/Project/PythonBinding.csproj
  6. 11
      src/Setup/Files.wxs
  7. 3
      src/Setup/Setup.wxs

2
src/AddIns/BackendBindings/Python/PythonBinding.sln

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
# SharpDevelop 3.0.0.3800
# SharpDevelop 3.1.0.4070
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PythonBinding", "PythonBinding\Project\PythonBinding.csproj", "{8D732610-8FC6-43BA-94C9-7126FD7FE361}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PythonBinding.Tests", "PythonBinding\Test\PythonBinding.Tests.csproj", "{23B517C9-1ECC-4419-A13F-0B7136D085CB}"

19
src/AddIns/BackendBindings/Python/PythonBinding/Project/Lib/__future__.py

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
#####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Microsoft Public License. A
# copy of the license can be found in the License.html file at the root of this distribution. If
# you cannot locate the Microsoft Public License, please send an email to
# ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
# by the terms of the Microsoft Public License.
#
# You must not remove this notice, or any other, from this software.
#
#
#####################################################################################
division=1
with_statement=1
generators=1
absolute_import=1

31
src/AddIns/BackendBindings/Python/PythonBinding/Project/Lib/runpy.py

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
#####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Microsoft Public License. A
# copy of the license can be found in the License.html file at the root of this distribution. If
# you cannot locate the Microsoft Public License, please send an email to
# ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
# by the terms of the Microsoft Public License.
#
# You must not remove this notice, or any other, from this software.
#
#
#####################################################################################
"""
Fake runpy.py which emulates what CPython does to properly support the '-m' flag.
If you have access to the CPython standard library, you most likely do not need this.
"""
import sys, nt
def run_module(modToRun, init_globals=None, run_name = '__main__', alter_sys = True):
if alter_sys:
for o in sys.path:
libpath = o + '\\' + modToRun + '.py'
if nt.access(libpath, nt.F_OK):
sys.argv[0] = libpath
break
__import__(modToRun)

14
src/AddIns/BackendBindings/Python/PythonBinding/Project/Lib/site.py

@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
#####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Microsoft Public License. A
# copy of the license can be found in the License.html file at the root of this distribution. If
# you cannot locate the Microsoft Public License, please send an email to
# ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
# by the terms of the Microsoft Public License.
#
# You must not remove this notice, or any other, from this software.
#
#
#####################################################################################

10
src/AddIns/BackendBindings/Python/PythonBinding/Project/PythonBinding.csproj

@ -115,6 +115,15 @@ @@ -115,6 +115,15 @@
<Compile Include="Src\StandardPythonModules.cs" />
<Compile Include="Src\PythonVariableResolver.cs" />
<Compile Include="Src\TextEditor.cs" />
<None Include="Lib\runpy.py">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Lib\site.py">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Lib\__future__.py">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="PythonBinding.addin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
@ -145,6 +154,7 @@ @@ -145,6 +154,7 @@
<EmbeddedResource Include="Resources\Python.xshd" />
</ItemGroup>
<ItemGroup>
<Folder Include="Lib" />
<Folder Include="Templates" />
<Folder Include="Resources" />
<ProjectReference Include="..\..\..\..\..\Libraries\ICSharpCode.TextEditor\Project\ICSharpCode.TextEditor.csproj">

11
src/Setup/Files.wxs

@ -1312,6 +1312,17 @@ @@ -1312,6 +1312,17 @@
<Component Guid="2B8CBE37-D71F-435C-9B26-70FF69451A6E" Id="MicrosoftScriptingExtensionAttributeDll" DiskId="1">
<File Source="..\..\AddIns\AddIns\BackendBindings\PythonBinding\Microsoft.Scripting.ExtensionAttribute.dll" Name="Microsoft.Scripting.ExtensionAttribute.dll" Id="Microsoft.Scripting.ExtensionAttribute.dll" KeyPath="yes" Assembly=".net" AssemblyApplication="Microsoft.Scripting.ExtensionAttribute.dll" />
</Component>
<Directory Id="PythonLib" Name="Lib">
<Component Guid="98D4136A-897A-479A-AD50-E89600C5016D" Id="PythonBindingLibRunpyPy" DiskId="1">
<File Source="..\..\AddIns\AddIns\BackendBindings\PythonBinding\Lib\runpy.py" Name="runpy.py" Id="runpy.py" KeyPath="yes" />
</Component>
<Component Guid="E091A881-9015-47A6-ADBE-EAA87A5171C3" Id="PythonBindingLibSitePy" DiskId="1">
<File Source="..\..\AddIns\AddIns\BackendBindings\PythonBinding\Lib\site.py" Name="site.py" Id="site.py" KeyPath="yes" />
</Component>
<Component Guid="240EC6F6-6377-4840-A1C9-BDC15F653669" Id="PythonBindingLibFuturePy" DiskId="1">
<File Source="..\..\AddIns\AddIns\BackendBindings\PythonBinding\Lib\__future__.py" Name="__future__.py" Id="__future__.py" KeyPath="yes" />
</Component>
</Directory>
</Directory>
<Directory Id="FSharpBinding" Name="FSharpBinding">
<Component Guid="6B4F28AF-133C-4FEB-98DB-67A5405AEB12" Id="FSharpBindingAddin" DiskId="1">

3
src/Setup/Setup.wxs

@ -422,6 +422,9 @@ @@ -422,6 +422,9 @@
<ComponentRef Id="PythonBuildTasksDll"/>
<ComponentRef Id="PythonBindingAddin"/>
<ComponentRef Id="PythonBindingDll"/>
<ComponentRef Id="PythonBindingLibRunpyPy"/>
<ComponentRef Id="PythonBindingLibSitePy"/>
<ComponentRef Id="PythonBindingLibFuturePy"/>
<ComponentRef Id="SharpDevelopBuildPythonTargets"/>
<ComponentRef Id="FSharpBindingDll"/>

Loading…
Cancel
Save