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
Copy file name to clipboardExpand all lines: Documentation/building.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,27 +8,27 @@ See [Getting the Sources](getting-the-sources.md) for information on getting the
8
8
9
9
Visual Studio 2019 v16.8 or above is required to build IronPython3.
10
10
11
-
* Open `c:\path\to\ironpython3\IronPython.sln` solution file
12
-
* Select the configuration options (Release,Debug, etc)
11
+
* Open the `IronPython.sln` solution file
12
+
* Select the configuration options (Release,Debug, etc.)
13
13
* Press Ctrl+Shift+B or F6 to build the solution
14
14
15
15
## Building from the command line
16
16
17
-
IronPython3 uses PowerShell to run the build and testing from the command line. You can either use a PowerShell directly, or prefix the commands below with `powershell` on Windows, or `pwsh` on Linux/macOS.
17
+
IronPython3 uses PowerShell to run the build and testing from the command line. You can either use a PowerShell directly, or prefix the commands below with `powershell` on Windows, or `pwsh` on Linux/macOS.
18
18
19
19
On Linux/macOS you will need to install [PowerShell](https://github.com/PowerShell/PowerShell/releases)
20
20
21
21
Change the working directory to the path where you cloned the sources and run `./make.ps1`
22
22
23
-
By default, with no options, make.ps1 will build Release mode binaries. If you would like to build debug binaries, you can run `./make.ps1 debug`
23
+
By default, with no options, `make.ps1` will build the `Release` mode binaries. If you would like to build `Debug` binaries, you can run `./make.ps1 debug`
24
24
25
25
Other options available for `make.ps1` are
26
26
27
27
```
28
28
-configuration (debug/release) The configuration to build for
29
29
-platform (x86/x64) The platform to use in running tests
30
30
-runIgnored Run tests that are marked as ignored in the .ini manifests
31
-
-frameworks A comma separated list of frameworks to run tests for
31
+
-frameworks A comma separated list of frameworks to run tests for
32
32
(use nomenclature as is used in msbuild files for TargetFrameworks)
33
33
```
34
34
@@ -37,12 +37,14 @@ There are also other targets available for use with packaging and testing, most
37
37
```
38
38
package Creates packages supported by the current platform
39
39
stage Stages files ready for packaging
40
-
test-* Runs tests from `all` categories, `ironpython` specific tests,
40
+
test-* Runs tests from `all` categories, `ironpython` specific tests,
41
41
`cpython` tests from the CPython stdlib test suite
42
42
```
43
43
44
44
If the build is successful the binaries are stored in `ironpython3/bin/{Configuration}/{TargetFramework}`.
45
45
46
-
## Run
46
+
## Running
47
47
48
-
Before run the IronPython3, you should set the environment variable `IRONPYTHONPATH` to `Src/StdLib/Lib/`.
48
+
The standard library is not copied over to the `bin` folder during the build process, it lives in `Src/StdLib/Lib`.
49
+
- When running the `Release` configuration executable, you should set the environment variable `IRONPYTHONPATH` to this folder.
50
+
- When running the `Debug` configuration executable, this folder is automatically added to `sys.path`.
0 commit comments