capistrano-pyenv 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,9 +101,9 @@ module Capistrano
101
101
  _cset(:pyenv_python_dependencies) {
102
102
  case pyenv_platform
103
103
  when /(debian|ubuntu)/i
104
- %w(build-essential libreadline6-dev zlib1g-dev libssl-dev)
104
+ %w(git-core build-essential libreadline6-dev zlib1g-dev libssl-dev)
105
105
  when /redhat/i
106
- %w(autoconf glibc-devel patch readline readline-devel zlib zlib-devel openssl)
106
+ %w(git-core autoconf glibc-devel patch readline readline-devel zlib zlib-devel openssl)
107
107
  else
108
108
  []
109
109
  end
@@ -112,10 +112,9 @@ module Capistrano
112
112
  unless pyenv_python_dependencies.empty?
113
113
  case pyenv_platform
114
114
  when /(debian|ubuntu)/i
115
- # dpkg-query is faster than apt-get on querying if packages are installed
116
- run("dpkg-query --show #{pyenv_python_dependencies.join(' ')} 2>/dev/null || #{sudo} apt-get -y install #{pyenv_python_dependencies.join(' ')}")
115
+ run("#{sudo} apt-get install -q -y #{pyenv_python_dependencies.join(' ')}")
117
116
  when /redhat/i
118
- run("#{sudo} yum install -y #{pyenv_python_dependencies.join(' ')}")
117
+ run("#{sudo} yum install -q -y #{pyenv_python_dependencies.join(' ')}")
119
118
  else
120
119
  # nop
121
120
  end
@@ -125,7 +124,9 @@ module Capistrano
125
124
  desc("Build python within pyenv.")
126
125
  task(:build, :except => { :no_release => true }) {
127
126
  python = fetch(:pyenv_python_cmd, 'python')
128
- run("#{pyenv_cmd} whence #{python} | grep -q #{pyenv_python_version} || #{pyenv_cmd} install #{pyenv_python_version}")
127
+ if pyenv_python_version != 'system'
128
+ run("#{pyenv_cmd} whence #{python} | grep -q #{pyenv_python_version} || #{pyenv_cmd} install #{pyenv_python_version}")
129
+ end
129
130
  run("#{pyenv_cmd} exec #{python} --version")
130
131
  }
131
132
  }
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module PyEnv
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-pyenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-21 00:00:00.000000000 Z
12
+ date: 2012-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano