You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Install-IronPython and pack in zipfile (#1585)
* Update Install-IronPython and pack in zipfile
* Create startup script for mono during installation
* Update README for zip package
* Prioritize installation from within zip file
Copy file name to clipboardExpand all lines: Package/zip/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,14 @@ After unpacking the archive, move or copy one of the `net` directories matching
13
13
14
14
If access to the Python Standard Library is desired from IronPython, move or copy the whole `lib` directory **into** the moved/copied directory from the previous step. The `lib` directory has to be in the same directory as `IronPython.dll`.
15
15
16
+
The `scripts` subdirectory contains an installation script that facilitates the installation. Example:
Run `help ./scripts/Install-IronPython` in PowerShell for more information about supported options.
23
+
16
24
## Command-line Usage
17
25
18
26
To start a command-line interpreter on Windows run `ipy.exe` (for .NET Framework) or `ipy.bat` (for .NET). On Posix systems, run `ipy.sh`. `ipy.sh` may be renamed to simply `ipy` for convenience.
Copy file name to clipboardExpand all lines: Src/Scripts/Install-IronPython.ps1
+80-48Lines changed: 80 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -5,52 +5,79 @@
5
5
6
6
<#
7
7
.SYNOPSIS
8
-
Install IronPython 3 for .NET 6 from an official zip file distributable.
8
+
Install IronPython 3 from an official zip file distributable.
9
9
10
10
.DESCRIPTION
11
-
This script facilitates installation of IronPython on .NET 6 binaries from a zip file. The zip file is assumed to have content as published on the IronPython's download page. The zip file is produced by IronPython's "package" build target.
11
+
This script facilitates installation of IronPython binaries from a zip file. The zip file is assumed to have content as published on the IronPython's download page. The zip file is produced by IronPython's "package" build target.
12
12
13
13
.EXAMPLE
14
-
PS>./make
15
-
PS>./make package
16
-
PS>./Src/Scripts/Install-IronPython.ps1 env
17
14
18
-
These commands should be issued on a Powershell prompt with the current directory set to the project root.
19
-
The project is first built, then packaged, and finally the script uses the zipfile produced during packaging to install IronPython in directory "env"
The official binaries are downloaded from GitHub to the current directory, unzipped, and then the installation proceeds using the script from the unzipped directory. IronPython is installed into ~/ipyenv/v3.4.0-beta1.
The official binaries are downloaded from GitHub to the current directory and then the installation proceeds using the downloaded zip file. IronPython is installed into ~/ipyenv/v3.4.0-beta1, overwriting any previous installation in that location.
26
+
The official binaries are downloaded from GitHub to the current directory and then the installation proceeds using the downloaded zip file. IronPython is installed into ~/ipyenv/v3.4.0-beta1, overwriting any previous installation in that location. IronPython binaries running on .NET Framework 4.6.2 are used during the installation.
27
27
This example assumes that the installation script is in a directory on the search path ($env:PATH).
28
+
29
+
.EXAMPLE
30
+
31
+
PS>./make
32
+
PS>./make package
33
+
PS>./Src/Scripts/Install-IronPython.ps1 env
34
+
35
+
These commands should be issued on a Powershell prompt with the current directory set to the project root.
36
+
The project is first built, then packaged, and finally the script uses the zipfile produced during packaging to install IronPython in directory "env".
37
+
28
38
#>
29
39
[CmdletBinding()]
30
40
Param(
31
41
# Target directory to which IronPython is to be installed.
32
42
[Parameter(Position=0,Mandatory)]
33
-
[SupportsWildcards()]
34
43
[string] $Path,
35
44
36
45
# The path to the downloaded zip file with IronPython binaries. If empty, the script will try to grab the package directly produced by the local build.
37
46
[string] $ZipFile,
38
47
48
+
# The moniker of the .NET platform to install for.
49
+
[string] $Framework="net6.0",
50
+
39
51
# If the target path exists, it will be wiped clean beforehand.
40
52
[switch] $Force
41
53
)
42
54
43
55
$ErrorActionPreference="Stop"
44
56
45
-
$defaultVersion="3.4.0-beta1"
46
-
47
57
if (-not$ZipFile) {
48
-
# If zipfile path not given, assume that the script is in the standard location within the source tree
49
-
# and locate the zip archive in the standard location of the package target.
0 commit comments