MCPcopy Index your code
hub / github.com/python/cpython / make_pkg

Function make_pkg

Lib/test/support/script_helper.py:269–271  ·  view source on GitHub ↗
(pkg_dir, init_source='')

Source from the content-addressed store, hash-verified

267
268
269def make_pkg(pkg_dir, init_source=''):
270 os.mkdir(pkg_dir)
271 make_script(pkg_dir, '__init__', init_source)
272
273
274def make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename,

Callers 10

test_packageMethod · 0.90
test_package_compiledMethod · 0.90
test_package_errorMethod · 0.90
test_issue8202Method · 0.90
setup_test_pkgMethod · 0.90
test_packageMethod · 0.90
test_package_compiledMethod · 0.90

Calls 2

make_scriptFunction · 0.85
mkdirMethod · 0.45

Tested by 10

test_packageMethod · 0.72
test_package_compiledMethod · 0.72
test_package_errorMethod · 0.72
test_issue8202Method · 0.72
setup_test_pkgMethod · 0.72
test_packageMethod · 0.72
test_package_compiledMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…