|
25 | 25 |
|
26 | 26 | import _shared |
27 | 27 |
|
28 | | -LOCAL_SETUP_MARKER = ( |
29 | | - b"# Generated by Platforms/WASI .\n" |
30 | | - b"# Required to statically build extension modules." |
31 | | -) |
32 | | - |
33 | 28 | WASMTIME_VAR_NAME = "WASMTIME" |
34 | 29 | WASMTIME_HOST_RUNNER_VAR = f"{{{WASMTIME_VAR_NAME}}}" |
35 | 30 |
|
@@ -147,18 +142,6 @@ def call(command, *, context=None, quiet=False, **kwargs): |
147 | 142 | @subdir("build_python_path", clean_ok=True) |
148 | 143 | def configure_build_python(context, working_dir): |
149 | 144 | """Configure the build/host Python.""" |
150 | | - if context.setup_local_path.exists(): |
151 | | - if context.setup_local_path.read_bytes() == LOCAL_SETUP_MARKER: |
152 | | - _shared.log("👍", f"{context.setup_local_path} exists ...") |
153 | | - else: |
154 | | - _shared.log( |
155 | | - "⚠️", |
156 | | - f"{context.setup_local_path} exists, but has unexpected contents", |
157 | | - ) |
158 | | - else: |
159 | | - _shared.log("📝", f"Creating {context.setup_local_path} ...") |
160 | | - context.setup_local_path.write_bytes(LOCAL_SETUP_MARKER) |
161 | | - |
162 | 145 | configure = [os.path.relpath(context.checkout / "configure", working_dir)] |
163 | 146 | if context.args: |
164 | 147 | configure.extend(context.args) |
@@ -300,13 +283,6 @@ def clean_contents(context): |
300 | 283 | _shared.log("🧹", f"Deleting {context.cross_build_path} ...") |
301 | 284 | shutil.rmtree(context.cross_build_path) |
302 | 285 |
|
303 | | - if context.setup_local_path.exists(): |
304 | | - if context.setup_local_path.read_bytes() == LOCAL_SETUP_MARKER: |
305 | | - _shared.log( |
306 | | - "🧹", f"Deleting generated {context.setup_local_path} ..." |
307 | | - ) |
308 | | - context.setup_local_path.unlink() |
309 | | - |
310 | 286 |
|
311 | 287 | @subdir("build_python_path") |
312 | 288 | def pythoninfo_build_python(context, working_dir): |
|
0 commit comments