File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ String sitecustomizePy = """
33# The folder containing this file should be on your PYTHONPATH pip is invoked.
44
55custom_system = "{platform}"
6- custom_platform = "{tag}"
6+ # custom_platform = "{tag}"
77custom_mac_ver = "{mac_ver}"
88
99import collections
@@ -14,8 +14,8 @@ import sys
1414if 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
2020if custom_mac_ver:
2121 orig_mac_ver = platform.mac_ver
You can’t perform that action at this time.
0 commit comments