| 165 | f.write(copyright) |
| 166 | |
| 167 | def 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 | |
| 187 | def create_debian_source_package(): |
| 188 | log("Creating Debian source package using stdeb") |