Skip to content

Commit

Permalink
Add reference to upstream Nuitka issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Oct 26, 2024
1 parent 6f64321 commit ddf1737
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,35 +147,38 @@ jobs:
uv --no-progress venv
uv --no-progress pip install --requirement https://raw.githubusercontent.com/kdeldycke/workflows/main/requirements/nuitka.txt
# yamllint enable
- run: |
uv run
- name: List uv CLIs
continue-on-error: true
run: |
uv run
- name: Nuitka + compilers versions - Linux & macOS
if: runner.os != 'Windows'
run: |
uv --no-progress run --frozen nuitka --version
- name: Nuitka + compilers versions - Windows
if: runner.os == 'Windows'
run: |
uv --no-progress run --frozen nuitka --version
uv --no-progress run --frozen -- nuitka --version
- name: Build binary - Linux & macOS
if: runner.os != 'Windows'
run: >
uv --no-progress run --frozen nuitka
uv --no-progress run --frozen -- nuitka
--onefile --assume-yes-for-downloads --output-filename=${{ matrix.bin_name }}
${{ matrix.module_path }}
# XXX We need to call "uv run python -m nuitka" instead of "uv run nuitka" on Windows because of this bug:
# https://github.com/Nuitka/Nuitka/issues/3173
- name: Nuitka + compilers versions - Windows
if: runner.os == 'Windows'
run: |
uv --no-progress run --frozen -- python -m nuitka --version
- name: Build binary - Windows
if: runner.os == 'Windows'
env:
# Sets sys.flags.utf8_mode to True, which is like call the Python interpreter with the "-X utf8" parameter.
# This is a workaround for Windows runners, redirecting the output of commands to files. See:
# Sets sys.flags.utf8_mode to True, which is like calling Python with the "-X utf8" parameter.
# This is a workaround for Windows runners, on redirecting the output of commands to files. See:
# https://github.com/databrickslabs/dbx/issues/455#issuecomment-1312770919
# https://github.com/pallets/click/issues/2121#issuecomment-1312773882
# https://gist.github.com/NodeJSmith/e7e37f2d3f162456869f015f842bcf15
# https://github.com/Nuitka/Nuitka/blob/ca1ec9e/nuitka/utils/ReExecute.py#L73-L74
PYTHONUTF8: 1
run: >
uv --no-progress run --frozen nuitka
uv --no-progress run --frozen -- python -m nuitka
--onefile --assume-yes-for-downloads --output-filename=${{ matrix.bin_name }}
${{ matrix.module_path }}
- name: Upload binaries
Expand Down

0 comments on commit ddf1737

Please sign in to comment.