mortar 0.15.21 → 0.15.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -201,7 +201,7 @@ class Mortar::Local::Python
201
201
  end
202
202
 
203
203
  def pip_error_log_path
204
- return ENV.fetch('PIP_ERROR_LOG', "dependency_install.log")
204
+ return ENV.fetch('PIP_ERROR_LOG', "#{local_install_directory}/pip_dependency_install.log")
205
205
  end
206
206
 
207
207
  def virtualenv_error_log_path
@@ -291,11 +291,8 @@ class Mortar::Local::Python
291
291
  # this limit. This unfortunately leads to very vague errors about pip not existing when
292
292
  # in fact it is the truncated path to the interpreter that does not exist. I would now
293
293
  # like the last day of my life back.
294
- pip_output = `. #{local_activate_path} && #{local_python_bin} #{local_pip_bin} #{subcmd}`
294
+ pip_output = `. #{local_activate_path} && #{local_python_bin} #{local_pip_bin} --log #{pip_error_log_path} #{subcmd}`
295
295
  if 0 != $?.to_i
296
- File.open(pip_error_log_path, 'w') { |f|
297
- f.write(pip_output)
298
- }
299
296
  return false
300
297
  else
301
298
  return true
@@ -16,5 +16,5 @@
16
16
 
17
17
  module Mortar
18
18
  # see http://semver.org/
19
- VERSION = "0.15.21"
19
+ VERSION = "0.15.22"
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mortar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.21
4
+ version: 0.15.22
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: 2014-07-02 00:00:00.000000000 Z
12
+ date: 2014-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc