| 205 | f.write("\nDepends: %s" % deps) |
| 206 | |
| 207 | def deb_dist_cleanup(): |
| 208 | # Move the deb_dist/ directory and remove unnecessary files |
| 209 | log("Preparing the deb_dist directory") |
| 210 | os.system("mv %s %s"\ |
| 211 | % (DISTUTILS_SETUP+"/deb_dist", INSTALLER+"/deb_dist")) |
| 212 | os.system("rm -rf %s" % DISTUTILS_SETUP) |
| 213 | # Paths |
| 214 | global DEB_DIST, DEB_DIST_PACKAGE, DEBIAN, DEBIAN_PACKAGE |
| 215 | DEB_DIST = INSTALLER+"/deb_dist" |
| 216 | DEB_DIST_PACKAGE = DEB_DIST+"/"+PACKAGE_NAME+"-"+VERSION |
| 217 | DEBIAN = DEB_DIST_PACKAGE+"/debian" |
| 218 | DEBIAN_PACKAGE = DEBIAN+"/python-"+PACKAGE_NAME |
| 219 | # Remove unnecessary files |
| 220 | os.chdir(DEB_DIST) |
| 221 | os.system("rm *.gz") |
| 222 | os.system("rm *.dsc") |
| 223 | |
| 224 | def create_debian_binary_package(): |
| 225 | os.chdir(DEB_DIST_PACKAGE) |