forked from commonjs/commonjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpavement.py
More file actions
34 lines (26 loc) · 717 Bytes
/
pavement.py
File metadata and controls
34 lines (26 loc) · 717 Bytes
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
import sys
from paver.easy import *
import paver.virtual
options(
virtualenv=Bunch(
packages_to_install=['pip'],
paver_command_line="initial"
)
)
@task
def initial():
"""Initial setup help."""
venv_command = "Scripts/activate.bat" if sys.platform == 'win32' \
else "source bin/activate"
print """This is the source for the CommonJS website.
You can build the website, by running these two commands (the
result will be in _site):
%s
paver build
""" % (venv_command)
@task
def build(options):
"""Builds the documentation."""
if not path("src/growl").exists():
sh("pip install -r requirements.txt")
sh("growl.py . ../_site", cwd="docs")