Skip to content

Commit 77c75d2

Browse files
committed
fix: re-add --pre to allow dev builds support; re-add custom_platform
1 parent e559c66 commit 77c75d2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/serious_python/bin/package_command.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const mobilePyPiUrl = "https://pypi.flet.dev";
1818
const pyodideRootUrl = "https://cdn.jsdelivr.net/pyodide/v0.27.7/full";
1919
const pyodideLockFile = "pyodide-lock.json";
2020

21-
const buildPythonVersion = "3.14.2";
22-
const buildPythonReleaseDate = "20251209";
21+
const buildPythonVersion = "3.14.3";
22+
const buildPythonReleaseDate = "20260203";
2323
const defaultSitePackagesDir = "__pypackages__";
2424
const sitePackagesEnvironmentVariable = "SERIOUS_PYTHON_SITE_PACKAGES";
2525
const flutterPackagesFlutterEnvironmentVariable =
@@ -359,7 +359,7 @@ class PackageCommand extends Command {
359359
'-m',
360360
'pip',
361361
'install',
362-
// '--pre',
362+
'--pre',
363363
'--upgrade',
364364
...pipArgs,
365365
'--target',

src/serious_python/bin/sitecustomize.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ String sitecustomizePy = """
33
# The folder containing this file should be on your PYTHONPATH pip is invoked.
44
55
custom_system = "{platform}"
6-
#custom_platform = "{tag}"
6+
custom_platform = "{tag}"
77
custom_mac_ver = "{mac_ver}"
88
99
import collections
@@ -14,8 +14,8 @@ import sys
1414
if custom_system:
1515
platform.system = lambda: custom_system
1616
17-
#if custom_platform:
18-
# sysconfig.get_platform = lambda: custom_platform
17+
if custom_platform:
18+
sysconfig.get_platform = lambda: custom_platform
1919
2020
if custom_mac_ver:
2121
orig_mac_ver = platform.mac_ver
@@ -43,4 +43,4 @@ if custom_system == "iOS":
4343
4444
orig_platform_version = platform.version
4545
platform.version = lambda: orig_platform_version() + ";embedded"
46-
""";
46+
""";

0 commit comments

Comments
 (0)