Exemplo n.º 1
0
def package(VERSION):
    """Package the emacs-for-python distribution
    """
    clean()
    globs = MANIFEST.split()
    # Concatenating lists
    files = itertools.chain(*(glob.glob(g) for g in globs))
    mkdir("dist/emacs-for-python-"+VERSION,parent=True)
    cp(files,"dist/emacs-for-python-"+VERSION)
    archive("dist/emacs-for-python-"+VERSION, 
            "dist/emacs-for-python-%s.tar.gz"%VERSION,format="gzip")
    archive("dist/emacs-for-python-"+VERSION, 
            "dist/emacs-for-python-%s.zip"%VERSION,format="zip")
Exemplo n.º 2
0
def package_command():
    """Package the emacs-for-python distribution
    """
    clean()
    GLOBS = "COPYING README.org epy-*.el extensions\
 doc python-libs scripts".split()
    
    # Concatenating lists
    FILES = itertools.chain(*(glob.glob(g) for g in GLOBS))
    mkdir("dist/emacs-for-python-"+VERSION,parent=True)
    [cp(f,"dist/emacs-for-python-"+VERSION) for f in FILES]
    archive(["dist/emacs-for-python-"+VERSION], 
            "dist/emacs-for-python-%s.tar.gz"%VERSION,format="gzip")
Exemplo n.º 3
0
 def test_archive(self):
     archive("testdir","testdir.tar")
     self.assert_(os.path.exists("testdir.tar"))