diff options
author | Matt Rendina <mrendina@stsci.edu> | 2017-06-06 13:28:57 -0400 |
---|---|---|
committer | Matt Rendina <mrendina@stsci.edu> | 2017-06-06 13:28:57 -0400 |
commit | a6336f38a462ab052b66191d135a96c2f1d6bdaf (patch) | |
tree | 96a868abb0cdaf79f7f74db0787c9af7fa8ac37f /rambo | |
parent | 36f3c9c51c7d6d1c0de0f1e93c0cedf8ac06afb8 (diff) | |
download | rambo-a6336f38a462ab052b66191d135a96c2f1d6bdaf.tar.gz |
PEP8 and other minor adjustments
Diffstat (limited to 'rambo')
-rw-r--r-- | rambo/__init__.py | 3 | ||||
-rw-r--r-- | rambo/__main__.py | 7 | ||||
-rwxr-xr-x | rambo/rambo.py | 13 |
3 files changed, 11 insertions, 12 deletions
diff --git a/rambo/__init__.py b/rambo/__init__.py index 3a180c1..dce4f7f 100644 --- a/rambo/__init__.py +++ b/rambo/__init__.py @@ -1,6 +1,5 @@ -__all__ = ["rambo"] - from .rambo import __version__ from .rambo import Meta from .rambo import MetaSet +__all__ = ["rambo"] diff --git a/rambo/__main__.py b/rambo/__main__.py index 8f0eca2..3051676 100644 --- a/rambo/__main__.py +++ b/rambo/__main__.py @@ -9,15 +9,16 @@ import os import sys import argparse from . import rambo -#from ._version import __version__ -#from .rambo import * + def main(argv=None): if argv is None: argv = sys.argv - parser = argparse.ArgumentParser(prog='rambo') + parser = argparse.ArgumentParser( + prog='rambo', + description='Recipe Analyzer and Multi-Package Build Optimizer') parser.add_argument('-p', '--platform', type=str) parser.add_argument( '--python', diff --git a/rambo/rambo.py b/rambo/rambo.py index f8b65c0..7c8ff58 100755 --- a/rambo/rambo.py +++ b/rambo/rambo.py @@ -19,13 +19,12 @@ from ._version import __version__ try: import conda_build.api except ImportError: - raise ImportError('conda-build must be installed order to use this \n' - 'tool. Either conda-build is not installed, or you \n' - 'are working in an activated conda environment. \n' - 'If conda-build is installed deactivate the \n' - 'environment currently enabled or explicitly switch \n' - 'to the conda "root" environment to allow use of\n' - 'conda-build.') + print('conda-build must be installed order to use this tool. \n' + 'Either conda-build is not installed, or you are working in an \n' + 'activated conda environment. \n' + 'If conda-build is installed deactivate the environment currently \n' + 'enabled or explicitly switch to the conda "root" environment to \n' + 'allow use of conda-build.') DEFAULT_MINIMUM_NUMPY_VERSION = '1.11' |