Skip to content

Commit 7c800b8

Browse files
committed
fix(packaging)
1 parent 85105f5 commit 7c800b8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/serious_python/bin/package_command.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ class PackageCommand extends Command {
345345
Platform.environment[allowSourceDistrosEnvironmentVariable]!
346346
]);
347347
}
348+
pipArgs.addAll([
349+
'--platform',
350+
arch.value["tag"]!,
351+
]);
348352
}
349353

350354
for (var index in extraPyPiIndexes) {
@@ -360,8 +364,6 @@ class PackageCommand extends Command {
360364
...pipArgs,
361365
'--target',
362366
sitePackagesDir,
363-
'--platform',
364-
arch.value["tag"]!,
365367
...requirements
366368
], environment: pipEnv);
367369

src/serious_python/bin/sitecustomize.dart

Lines changed: 3 additions & 3 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

0 commit comments

Comments
 (0)