Skip to content

Commit

Permalink
Merge branch 'master' of https://code.google.com/p/selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Mar 6, 2013
2 parents af196c7 + 0ebc980 commit 86b6180
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rake-tasks/crazy_fun/mappings/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ def handle(fun, dir, args)
task Tasks.new.task_name(dir, args[:name]) do
dest = Platform.path_for(args[:dest])
pip_pkg = "pip install #{args[:packages].join(' ')}"
virtualenv = "virtualenv --no-site-packages" + " #{dest}"
sh virtualenv, :verbose => true do |ok, res|
virtualenv = ["virtualenv", "--no-site-packages", " #{dest}"]
virtualenv += ["-p", ENV['pyversion']] if ENV['pyversion']
sh virtualenv.join(' '), :verbose => true do |ok, res|
unless ok
puts ""
puts "PYTHON DEPENDENCY ERROR: Virtualenv not found."
Expand Down

0 comments on commit 86b6180

Please sign in to comment.