def dmg(): pyver = ".".join([str(i) for i in sys.version_info[:2]]) builddir = paver.path.path("build") / "dmg" builddir.rmtree() builddir.mkdir() # Copy mpkg into image source mpkg_n = mpkg_name() mpkg = paver.path.path("dist") / mpkg_n mpkg.copytree(builddir / mpkg_n) tmpkg = builddir / mpkg_n tmpkg.rename(builddir / ("samplerate-%s-py%s.mpkg" % (common.build_fverstring(), pyver))) # Copy docs into image source doc_root = paver.path.path(builddir) / "docs" html_docs = paver.path.path("docs") / "html" pdf_docs = paver.path.path("docs") / "pdf" / "samplerate.pdf" html_docs.copytree(doc_root / "html") pdf_docs.copy(doc_root / "samplerate.pdf") # Build the dmg image_name = "samplerate-%s.dmg" % common.build_fverstring() image = paver.path.path(image_name) image.remove() cmd = ["hdiutil", "create", image_name, "-srcdir", str(builddir)] sh(" ".join(cmd))
def dmg(): pyver = ".".join([str(i) for i in sys.version_info[:2]]) builddir = paver.path.path("build") / "dmg" builddir.rmtree() builddir.mkdir() # Copy mpkg into image source mpkg_n = mpkg_name() mpkg = paver.path.path("dist") / mpkg_n mpkg.copytree(builddir / mpkg_n) tmpkg = builddir / mpkg_n tmpkg.rename(builddir / ("audiolab-%s-py%s.mpkg" % (common.build_fverstring(), pyver))) # Copy docs into image source doc_root = paver.path.path(builddir) / "docs" html_docs = paver.path.path("docs") / "html" pdf_docs = paver.path.path("docs") / "pdf" / "audiolab.pdf" html_docs.copytree(doc_root / "html") pdf_docs.copy(doc_root / "audiolab.pdf") # Build the dmg image_name = "audiolab-%s.dmg" % common.build_fverstring() image = paver.path.path(image_name) image.remove() cmd = ["hdiutil", "create", image_name, "-srcdir", str(builddir)] sh(" ".join(cmd))
def dmg(): builddir = path("build") / "dmg" builddir.rmtree() builddir.mkdir() # Copy mpkg into image source mpkg_n = mpkg_name() mpkg = path("dist") / mpkg_n mpkg.copytree(builddir / mpkg_n) # Copy docs into image source doc_root = path(builddir) / "docs" html_docs = path("docs") / "html" pdf_docs = path("docs") / "pdf" / "talkbox.pdf" html_docs.copytree(doc_root / "html") pdf_docs.copy(doc_root / "talkbox.pdf") # Build the dmg image_name = "talkbox-%s.dmg" % common.build_fverstring() image = path(image_name) image.remove() cmd = ["hdiutil", "create", image_name, "-srcdir", str(builddir)] subprocess.Popen(cmd)
def test_sdist(): """Test the tarball builds.""" sh('cd dist; tar -xzf %s' % tarball_name()) sh('cd dist/scikits.talkbox-%s; python setup.py build' % common.build_fverstring())
def tarball_name(): pyver = ".".join([str(i) for i in sys.version_info[:2]]) return "scikits.talkbox-%s.tar.gz" % (common.build_fverstring())
def mpkg_name(): maj, min = macosx_version()[:2] pyver = ".".join([str(i) for i in sys.version_info[:2]]) return "scikits.talkbox-%s-py%s-macosx%s.%s.mpkg" % ( common.build_fverstring(), pyver, maj, min)
def mpkg_name(): maj, min = macosx_version()[:2] pyver = ".".join([str(i) for i in sys.version_info[:2]]) return "scikits.talkbox-%s-py%s-macosx%s.%s.mpkg" % (common.build_fverstring(), pyver, maj, min)
def test_sdist(): """Test the tarball builds.""" sh("cd dist; tar -xzf %s" % tarball_name()) sh("cd dist/scikits.talkbox-%s; python setup.py build" % common.build_fverstring())