diff --git a/README.md b/README.md index a530bcc..c628759 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ On **Bash** and **Zsh** on OS X/Linux: **NOTE:** On OS X, if you see installation failing with the following message, "zipimport.ZipImportError: can't decompress data; zlib not available", perform the following exports and then retry the above command: ```bash +brew install zlib export LDFLAGS="-L/usr/local/opt/zlib/lib" export CPPFLAGS="-I/usr/local/opt/zlib/include" ``` diff --git a/VERSION b/VERSION index 6e8bf73..d917d3e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.1.2 diff --git a/scripts/ebcli_installer.py b/scripts/ebcli_installer.py index 22d4137..378562e 100644 --- a/scripts/ebcli_installer.py +++ b/scripts/ebcli_installer.py @@ -426,6 +426,7 @@ def _create_virtualenv( """ virtualenv_location = virtualenv_location or _user_local_directory() virtualenv_directory = os.path.join(virtualenv_location, VIRTUALENV_DIR_NAME) + python_installation = python_installation or sys.executable if ( os.path.exists(virtualenv_directory) @@ -447,11 +448,11 @@ def _create_virtualenv( virtualenv_args = [ virtualenv_executable or 'virtualenv', - virtualenv_directory + '"{}"'.format(virtualenv_directory) ] python_installation and virtualenv_args.extend( - ['-p', python_installation] + ['-p', '"{}"'.format(python_installation)] ) if _exec_cmd(virtualenv_args, quiet) != 0: @@ -553,7 +554,10 @@ def _install_ebcli(quiet, version, ebcli_source): '--upgrade', '--upgrade-strategy', 'eager', ] - _exec_cmd(install_args, quiet) + returncode = _exec_cmd(install_args, quiet) + + if returncode != 0: + exit(returncode) def _add_ebcli_stamp(virtualenv_directory):