forked from beville/ComicStreamer
-
Notifications
You must be signed in to change notification settings - Fork 13
/
pavement.py
35 lines (30 loc) · 934 Bytes
/
pavement.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from paver.easy import *
from paver.setuputils import setup
import urllib
import os
setup(
name="TestProject",
packages=[],
version="1.0",
url="http://example.com/",
author="Davide Romanini",
author_email="[email protected]"
)
@task
def libunrar():
UNRAR_SRC = "http://www.rarlab.com/rar/unrarsrc-5.3.2.tar.gz"
dest = "libunrar/" + os.path.basename(UNRAR_SRC)
if not os.path.exists(dest):
print "Fetching " + UNRAR_SRC + "..."
urllib.urlretrieve(UNRAR_SRC, dest)
if not os.path.exists("libunrar/unrar"):
print "Unpacking " + dest + "..."
sh("tar xfz %s -C libunrar" % (dest))
print "Compiling unrar..."
sh("cd libunrar/unrar && make lib")
sh("cp libunrar/unrar/libunrar.so libunrar/libunrar.so")
@task
@needs(["distutils.command.sdist"])
def sdist():
"""Generate docs and source distribution."""
pass