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
# Licensed to the .NET Foundation under one or more agreements.
3
+
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
4
+
# See the LICENSE file in the project root for more information.
5
+
6
+
<#
7
+
.SYNOPSIS
8
+
Install IronPython 3 for .NET 6 from an official zip file distributable.
9
+
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.
12
+
13
+
.EXAMPLE
14
+
PS>./make
15
+
PS>./make package
16
+
PS>./Src/Scripts/Install-IronPython.ps1 env
17
+
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 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.
27
+
This example assumes that the installation script is in a directory on the search path ($env:PATH).
28
+
#>
29
+
[CmdletBinding()]
30
+
Param(
31
+
# Target directory to which IronPython is to be installed.
32
+
[Parameter(Position=0,Mandatory)]
33
+
[SupportsWildcards()]
34
+
[string] $Path,
35
+
36
+
# 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
+
[string] $ZipFile,
38
+
39
+
# If the target path exists, it will be wiped clean beforehand.
40
+
[switch] $Force
41
+
)
42
+
43
+
$ErrorActionPreference="Stop"
44
+
45
+
$defaultVersion="3.4.0-beta1"
46
+
47
+
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