Merge pull request #119 from basho/jd-python-version

Bumped python client version to 1.5-stable, for fuzzy versioning.
This commit is contained in:
Joe DeVivo 2012-12-11 08:54:34 -08:00
commit 6a8ecb5232

View File

@ -2,7 +2,8 @@
-export([confirm/0]).
-include_lib("eunit/include/eunit.hrl").
-define(PYTHON_CLIENT_TAG, "1.5.1").
%% @todo set this to 1.5.2 or greater, once that's released
-define(PYTHON_CLIENT_TAG, "1.5-stable").
-define(PYTHON_CHECKOUT, filename:join([rt:config(rt_scratch_dir), "riak-python-client"])).
-define(PYTHON_GIT_URL, "git://github.com/basho/riak-python-client.git").
@ -63,7 +64,10 @@ prereqs() ->
rt:stream_cmd(Cmd),
lager:info("[PREREQ] Resetting python client to tag '~s'", [?PYTHON_CLIENT_TAG]),
TagCmd = io_lib:format("git reset --hard ~s", [?PYTHON_CLIENT_TAG]),
%% @todo below is how to reset to a tag, use that when 1.5.2 is available
%%TagCmd = io_lib:format("git reset --hard ~s", [?PYTHON_CLIENT_TAG]),
rt:stream_cmd("git reset --hard", [{cd, ?PYTHON_CHECKOUT}]),
TagCmd = io_lib:format("git checkout -b ~s", [?PYTHON_CLIENT_TAG]),
rt:stream_cmd(TagCmd, [{cd, ?PYTHON_CHECKOUT}]),
lager:info("[PREREQ] Installing an isolated environment with virtualenv in ~s", [?PYTHON_CHECKOUT]),