Skip to content

Commit 80292fa

Browse files
committed
bootstrap_env: check for OS and install filewatcher for sniffer, update docutils to .12
1 parent bff9dca commit 80292fa

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ CURRENT
99

1010
- [internal] Remove ``package_metadata.py`` in favor of ``__about__.py``.
1111
- [docs] ``scent.py`` for building docs
12+
- [docs] docutils from 0.11 to 0.12
13+
- [internal] ``bootstrap_env.py`` will check for linux, darwin (OS X) and
14+
windows and install the correct `sniffer`_ file watcher plugin.
1215
- [tests] testsuite for cli uses :py:func:`tempfile.mkdtemp()` instead
1316
``TMP_DIR`` (which resolved to ``.tmuxp`` in the testsuite directory.
1417
- [tests] replace `watchingtestrunner`_ with `sniffer`_ in examples.

bootstrap_env.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import os
88
import sys
99
import subprocess
10+
import platform
1011

1112

1213
def warning(*objs):
@@ -121,6 +122,19 @@ def main():
121122
[pip_bin, 'install', 'sniffer']
122123
)
123124

125+
if platform.system() == 'Linux':
126+
subprocess.check_call(
127+
[pip_bin, 'install', 'pyinotify']
128+
)
129+
elif platform.system() == 'Darwin':
130+
subprocess.check_call(
131+
[pip_bin, 'install', 'MacFSEvents']
132+
)
133+
elif platform.system() == 'Windows':
134+
subprocess.check_call(
135+
[pip_bin, 'install', 'pywin32']
136+
)
137+
124138
if not os.path.isfile(os.path.join(env_dir, 'bin', 'sphinx-quickstart')):
125139
subprocess.check_call(
126140
[pip_bin, 'install', '-r', sphinx_requirements_filepath]

doc/requirements.pip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-r ../requirements.pip
2-
docutils==0.11
2+
docutils==0.12
33
sphinx<1.2.1
44
reportlab
55
sphinxcontrib-aafig

0 commit comments

Comments
 (0)