Skip to content

Commit f1a301b

Browse files
jcfrthewtex
authored andcommitted
windows_build_wheels: Add stub for fixup_wheels and fixup_wheels
1 parent 8c17d3d commit f1a301b

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

scripts/windows_build_wheels.py

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
import glob
23
import json
34
import os
45
import shutil
@@ -213,7 +214,20 @@ def build_wheel(python_version, single_wheel=False, cleanup=False):
213214
os.path.join(build_path, "Wrapping", "Generators", "CastXML"))
214215

215216

216-
def build_wheels(py_envs=None, cleanup=False):
217+
def fixup_wheel(filepath):
218+
pass
219+
220+
221+
def fixup_wheels():
222+
for wheel in glob.glob(os.path.join(ROOT_DIR, "dist", "*.whl")):
223+
fixup_wheel(wheel)
224+
225+
226+
def test_wheels(single_wheel=False):
227+
pass
228+
229+
230+
def build_wheels(py_envs=None, single_wheel=False, cleanup=False):
217231

218232
if py_envs is None:
219233
py_envs = ["27-x64", "35-x64", "36-x64"]
@@ -240,12 +254,18 @@ def build_wheels(py_envs=None, cleanup=False):
240254

241255
check_call([ninja_executable])
242256

243-
single_wheel = False
244-
245257
# Compile wheels re-using standalone project and archive cache
246258
for py_env in py_envs:
247259
build_wheel(py_env, single_wheel=single_wheel, cleanup=cleanup)
248260

249261

262+
def main():
263+
single_wheel = False
264+
265+
build_wheels(single_wheel=single_wheel)
266+
fixup_wheels()
267+
test_wheels(single_wheel=single_wheel)
268+
269+
250270
if __name__ == "__main__":
251-
build_wheels()
271+
main()

0 commit comments

Comments
 (0)