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

Function pkgbuild_script

constructor/osxpkg.py:559–569  ·  view source on GitHub ↗
(name, info, src, dst="postinstall", **kwargs)

Source from the content-addressed store, hash-verified

557
558
559def pkgbuild_script(name, info, src, dst="postinstall", **kwargs):
560 fresh_dir(SCRIPTS_DIR)
561 fresh_dir(PACKAGE_ROOT)
562 move_script(join(OSX_DIR, src), join(SCRIPTS_DIR, dst), info, **kwargs)
563 pkgbuild(
564 name,
565 identifier=info.get("reverse_domain_identifier"),
566 install_location=info.get("default_location_pkg"),
567 )
568 if not info.get("_debug"):
569 rm_rf(SCRIPTS_DIR)
570
571
572def create(info, verbose=False):

Callers 1

createFunction · 0.85

Calls 5

fresh_dirFunction · 0.85
move_scriptFunction · 0.85
pkgbuildFunction · 0.85
rm_rfFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected