mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 05:16:55 -05:00
Closes #3787, and is a step towards #3081 and #4022 This change breaks our PyOxidizer bundling process. While we probably could update it to work with the new venvs & lockfile, my intention is to use this as a base to try out a uv-based packager/installer. Still to do: - move mpv distribution to a wheel - build the new uv-based installer. Some notes about the changes: - Use uv for python download + venv installation - Drop python/requirements* in favour of pyproject files / uv.lock - Bumped to latest Python 3.9 version. The move to 3.13 should be a fairly trivial change when we're ready. - Dropped the old write_wheel.py in favour of uv/hatchling. This has the unfortunate side-effect of dropping leading zeros in our wheels, which we could try hack around in the future. - Switch to Qt 6.7 for the dev repo, as it's the first PyQt version with a Linux/ARM WebEngine wheel. - Unified our macOS deployment target with minimum required for ARM. - Dropped unused fluent python files - Dropped unused python license generation - Dropped helpers to run under Qt 5, as our wheels were already requiring Qt 6 to install.
12 lines
486 B
TOML
12 lines
486 B
TOML
[env]
|
|
STRINGS_PY = { value = "out/pylib/anki/_fluent.py", relative = true }
|
|
STRINGS_TS = { value = "out/ts/lib/generated/ftl.ts", relative = true }
|
|
DESCRIPTORS_BIN = { value = "out/rslib/proto/descriptors.bin", relative = true }
|
|
# build script will append .exe if necessary
|
|
PROTOC = { value = "out/extracted/protoc/bin/protoc", relative = true }
|
|
PYO3_NO_PYTHON = "1"
|
|
MACOSX_DEPLOYMENT_TARGET = "11"
|
|
PYTHONDONTWRITEBYTECODE = "1" # prevent junk files on Windows
|
|
|
|
[term]
|
|
color = "always"
|