Skip to content

Commit

Permalink
bootstrap_env: check for OS and install filewatcher for sniffer, upda…
Browse files Browse the repository at this point in the history
…te docutils to .12
  • Loading branch information
tony committed Oct 19, 2014
1 parent bff9dca commit 80292fa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES
Expand Up @@ -9,6 +9,9 @@ CURRENT

- [internal] Remove ``package_metadata.py`` in favor of ``__about__.py``.
- [docs] ``scent.py`` for building docs
- [docs] docutils from 0.11 to 0.12
- [internal] ``bootstrap_env.py`` will check for linux, darwin (OS X) and
windows and install the correct `sniffer`_ file watcher plugin.
- [tests] testsuite for cli uses :py:func:`tempfile.mkdtemp()` instead
``TMP_DIR`` (which resolved to ``.tmuxp`` in the testsuite directory.
- [tests] replace `watchingtestrunner`_ with `sniffer`_ in examples.
Expand Down
14 changes: 14 additions & 0 deletions bootstrap_env.py
Expand Up @@ -7,6 +7,7 @@
import os
import sys
import subprocess
import platform


def warning(*objs):
Expand Down Expand Up @@ -121,6 +122,19 @@ def main():
[pip_bin, 'install', 'sniffer']
)

if platform.system() == 'Linux':
subprocess.check_call(
[pip_bin, 'install', 'pyinotify']
)
elif platform.system() == 'Darwin':
subprocess.check_call(
[pip_bin, 'install', 'MacFSEvents']
)
elif platform.system() == 'Windows':
subprocess.check_call(
[pip_bin, 'install', 'pywin32']
)

if not os.path.isfile(os.path.join(env_dir, 'bin', 'sphinx-quickstart')):
subprocess.check_call(
[pip_bin, 'install', '-r', sphinx_requirements_filepath]
Expand Down
2 changes: 1 addition & 1 deletion doc/requirements.pip
@@ -1,5 +1,5 @@
-r ../requirements.pip
docutils==0.11
docutils==0.12
sphinx<1.2.1
reportlab
sphinxcontrib-aafig
Expand Down

0 comments on commit 80292fa

Please sign in to comment.