Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added env PERL_MM_NONINTERACTIVE and AUTOMATED_TESTING to cpanm installs

  • Loading branch information...
commit 1b4ac205e1a7497f7a3ab9d067aa3844e72309fa 1 parent 8dbaa78
Dexter Tad-y authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/cuisine_sweet/ensure/cpan_module.py
6 src/cuisine_sweet/ensure/cpan_module.py
View
@@ -3,9 +3,10 @@
"""
import os
+import pipes
import cuisine
-from fabric.api import run, puts, env
+from fabric.api import run, puts, env, prefix
from fabric.colors import green, blue
from cuisine_sweet.utils import completed_ok
@@ -40,7 +41,8 @@ def _do_install(module_name, home='/tmp', cpanm='/tmp/.deploy/bin/cpanm', source
mod = source
locallib_base = os.path.join(home, locallib)
opts = '-l %s' % locallib_base
- run('%s %s %s' % (cpanm, opts, mod))
+ with prefix('export AUTOMATED_TESTING=1 PERL_MM_NONINTERACTIVE=1'):
+ run('%s %s %s' % (cpanm, opts, mod))
def _prepare_environment():
Please sign in to comment.
Something went wrong with that request. Please try again.