Use backticks so that the command won't echo to the user.

This commit is contained in:
Ned Batchelder
2013-05-20 12:09:28 -04:00
parent fa87a64984
commit 23384ca2eb

View File

@@ -30,7 +30,7 @@ desc "Install all python prerequisites for the lms and cms"
task :install_python_prereqs => "ws:migrate" do
Tempfile.open('pyinstalled') do |pyinstalled|
# Read the names of everything in site-packages, and include them in the fingerprint.
sh("python -c 'import os; import distutils.sysconfig as dusc; print sorted(os.listdir(dusc.get_python_lib()))' > #{pyinstalled.path}")
`python -c 'import os; import distutils.sysconfig as dusc; print sorted(os.listdir(dusc.get_python_lib()))' > #{pyinstalled.path}`
unchanged = 'Python requirements unchanged, nothing to install'
when_changed(unchanged, 'requirements/**/*', pyinstalled.path) do
ENV['PIP_DOWNLOAD_CACHE'] ||= '.pip_download_cache'