File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
+ import pathlib
2
3
import shutil
3
4
import subprocess
4
5
from glob import glob
50
51
if not found_wheel_tag :
51
52
raise RuntimeError ("Could not find WHEEL tag" )
52
53
54
+ # On Windows due to setuptools-rust changing how the pyd file is named, we
55
+ # are renaming it back.
56
+ # https://github.com/PyO3/setuptools-rust/pull/352#discussion_r1293444464
57
+ # explains our exact situation, but no clear remedy.
58
+ # TODO(cretz): Investigate as part of https://github.com/temporalio/sdk-python/issues/398
59
+ pyd_files = glob ("dist/temp/*/temporalio/bridge/*-win_amd64.pyd" )
60
+ if pyd_files :
61
+ os .rename (
62
+ pyd_files [0 ],
63
+ pathlib .Path (pyd_files [0 ]).with_name ("temporal_sdk_bridge.pyd" ),
64
+ )
65
+
53
66
# Write the WHEEL file
54
67
with open (wheel_files [0 ], "w" ) as f :
55
68
f .write ("\n " .join (wheel_lines ))
You can’t perform that action at this time.
0 commit comments