MCPcopy Create free account
hub / github.com/conda/constructor / _build_xcode_projects

Function _build_xcode_projects

constructor/osxpkg.py:489–511  ·  view source on GitHub ↗
(xcodeproj_dirs: list[Path])

Source from the content-addressed store, hash-verified

487
488def create_plugins(pages: list[str] | str | None = None, codesigner: CodeSign | None = None):
489 def _build_xcode_projects(xcodeproj_dirs: list[Path]):
490 xcodebuild = shutil.which("xcodebuild")
491 if not xcodebuild:
492 raise RuntimeError(
493 "Plugin directory contains an uncompiled project, but xcodebuild is not available."
494 )
495 try:
496 subprocess.run([xcodebuild, "--help"], check=True, capture_output=True)
497 except subprocess.CalledProcessError:
498 raise RuntimeError(
499 "Plugin directory contains an uncompiled project, "
500 "but xcodebuild requires XCode to compile plugins."
501 )
502 for xcodeproj in xcodeproj_dirs:
503 build_cmd = [
504 xcodebuild,
505 "-project",
506 str(xcodeproj),
507 f"CONFIGURATION_BUILD_DIR={PLUGINS_DIR}",
508 # do not create dSYM debug symbols directory
509 "DEBUG_INFORMATION_FORMAT=",
510 ]
511 explained_check_call(build_cmd)
512
513 if not pages:
514 return

Callers 1

create_pluginsFunction · 0.85

Calls 1

explained_check_callFunction · 0.85

Tested by

no test coverage detected