comparison contrib/packaging/hgpackaging/pyoxidizer.py @ 47882:1e6cb23ce6da stable

packaging: reference proper output directory 9438e9b7321a changed the name of the PyOxidizer target, which changed the name of the output directory. The code changed by this patch wasn't properly updated by that changeset. This resulted in a run-time failure due to trying to read from a non-existent directory. This change should fix the building of Python 3 Inno installers. Differential Revision: https://phab.mercurial-scm.org/D11356
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 26 Aug 2021 17:39:11 -0700
parents 73f1a10320d1
children 8d7eaff92f9c
comparison
equal deleted inserted replaced
47881:39ab4c2f38b4 47882:1e6cb23ce6da
134 Mercurial install. 134 Mercurial install.
135 """ 135 """
136 136
137 run_pyoxidizer(source_dir, build_dir, target_triple) 137 run_pyoxidizer(source_dir, build_dir, target_triple)
138 138
139 if "windows" in target_triple:
140 target = "app_windows"
141 else:
142 target = "app_posix"
143
144 build_dir = ( 139 build_dir = (
145 source_dir / "build" / "pyoxidizer" / target_triple / "release" / target 140 source_dir / "build" / "pyoxidizer" / target_triple / "release" / "app"
146 ) 141 )
147 142
148 if out_dir.exists(): 143 if out_dir.exists():
149 print("purging %s" % out_dir) 144 print("purging %s" % out_dir)
150 shutil.rmtree(out_dir) 145 shutil.rmtree(out_dir)