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 11import os
2+ import pathlib
23import shutil
34import subprocess
45from glob import glob
5051 if not found_wheel_tag :
5152 raise RuntimeError ("Could not find WHEEL tag" )
5253
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+
5366 # Write the WHEEL file
5467 with open (wheel_files [0 ], "w" ) as f :
5568 f .write ("\n " .join (wheel_lines ))
You can’t perform that action at this time.
0 commit comments