MCPcopy Create free account
hub / github.com/cztomczak/cefpython / copy_tools_installer_files

Function copy_tools_installer_files

tools/make_installer.py:149–166  ·  view source on GitHub ↗
(setup_dir, pkg_dir)

Source from the content-addressed store, hash-verified

147
148
149def copy_tools_installer_files(setup_dir, pkg_dir):
150 variables = dict()
151 variables["VERSION"] = VERSION
152 variables["SYSCONFIG_PLATFORM"] = sysconfig.get_platform()
153
154 shutil.copy(
155 os.path.join(INSTALLER_DIR, "cefpython3.README.txt"),
156 os.path.join(setup_dir, "README.txt"))
157
158 copy_template_file(
159 os.path.join(INSTALLER_DIR, "cefpython3.setup.py"),
160 os.path.join(setup_dir, "setup.py"),
161 variables)
162
163 copy_template_file(
164 os.path.join(INSTALLER_DIR, "cefpython3.__init__.py"),
165 os.path.join(pkg_dir, "__init__.py"),
166 variables)
167
168
169def copy_template_file(src, dst, variables):

Callers 1

mainFunction · 0.85

Calls 2

copy_template_fileFunction · 0.85
copyMethod · 0.80

Tested by

no test coverage detected