Commit 23384ca2 by Ned Batchelder

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

parent fa87a649
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment