mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04: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.
17 lines
444 B
Bash
Executable file
17 lines
444 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Run a command with an alternative buildroot and Intel architecture target, for building Intel on an ARM Mac.
|
|
# Eg ./tools/mac-x86 ./tools/run-qt5.14
|
|
#
|
|
# Uses hard-coded paths to Python and build folders.
|
|
#
|
|
|
|
export BUILD_ROOT=~/Local/build/anki-x86
|
|
export NORMAL_BUILD_ROOT=~/Local/build/anki
|
|
export MAC_X86=1
|
|
|
|
|
|
# run provided command
|
|
$*
|
|
|
|
BUILD_ROOT=$NORMAL_BUILD_ROOT ./ninja just-to-restore-build-root-and-failure-is-expected
|