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

Function copy_postinst_script

src/linux/deb_pkg_deprecated/make-deb.py:167–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 f.write(copyright)
166
167def copy_postinst_script():
168 # When creating .postinst file in the debian directory,
169 # it will overwrite the default postinst script created
170 # by dh_pysupport, its contents are:
171 # -----------------------------------------------------
172 # if which update-python-modules >/dev/null 2>&1; then
173 # update-python-modules python-cefpython3.public
174 # fi
175 # -----------------------------------------------------
176 # The command above creates symlinks for libraries and
177 # executables, so that they appear to be in one directory.
178 # CEF executable requires that libcef.so and the subprocess
179 # executable are in the same directory.
180 # This solution does not to work correctly in CEF3 branch
181 # 1650, so we will have to put .so libraries along with
182 # other files in a real single directory.
183 log("Copying .postinst script")
184 shutil.copy(INSTALLER+"/debian.postinst",
185 DEBIAN+"/python-%s.postinst" % (PACKAGE_NAME))
186
187def create_debian_source_package():
188 log("Creating Debian source package using stdeb")

Callers 1

mainFunction · 0.85

Calls 2

copyMethod · 0.80
logFunction · 0.70

Tested by

no test coverage detected