-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCOMPILING.txt
More file actions
57 lines (47 loc) · 1.69 KB
/
COMPILING.txt
File metadata and controls
57 lines (47 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Building a Package for Distribution
===================================
macOS 13 and later:
1. Install the prerequisites:
* Python >=3.13,<3.14, from Mac installer on python.org
* Poetry 2.1.1: https://python-poetry.org/
$ python -m pip install poetry==2.1.1
2. Run the following commands in a Terminal window from this directory:
$ poetry install
$ cd setup
$ ./make-mac.sh
3. The output disk image will be in the setup/dist-mac directory.
Windows 11 and later:
1. Install the prerequisites:
* Python >=3.13,<3.14, from Windows installer on python.org
- Do select the option to alter the system PATH.
- Ensure Python works in Command Prompt:
$ python -V
* Poetry 2.1.1: https://python-poetry.org/
- Manually download the get-poetry.py script if needed
- Run the get-poetry.py script in Command Prompt:
$ python get-poetry.py
- Or install directly:
$ python -m pip install poetry==2.1.1
- Add to the end of your ';'-separated system PATH:
C:\Users\__YOUR_USERNAME__\.poetry\bin
- Ensure Poetry works in Command Prompt:
$ poetry --version
* Inno Setup 6.7.1, from https://jrsoftware.org/isdl.php#v6
2. Run the following commands in a Command Prompt window from this directory:
$ poetry install
$ cd setup
$ make-win.bat
3. The output installer will be in the setup/dist-win directory.
Linux:
* Figure it out and let me know.
Running Code Quality Checks
============================
Type Checking:
$ mypy
Linting:
$ pylint src tests
Running Coverage
================
$ COVERAGE_RUN=1 python3 -m crystal test
$ coverage html
$ open htmlcov/index.html