Skip to content

Commit d743693

Browse files
committed
Fail gracefully
1 parent a927601 commit d743693

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PC/layout/support/build_details.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,16 @@
2020
try:
2121
sys.path.insert(0, str(TOOLS_BUILD_DIR))
2222
import generate_build_details
23+
except ImportError:
24+
generate_build_details = None
2325
finally:
2426
sys.path = sys_path
2527
del sys_path
2628

2729

2830
def write_relative_build_details(out_path, base_path):
31+
if generate_build_details is None:
32+
return
2933
generate_build_details.write_build_details(
3034
schema_version=PEP739_SCHEMA_VERSION,
3135
base_path=base_path,

0 commit comments

Comments
 (0)