Commit e1120d56 by John Jarvis

new location for requirement files

parent 91383021
...@@ -77,8 +77,8 @@ environment), and Node has a library installer called ...@@ -77,8 +77,8 @@ environment), and Node has a library installer called
Once you've got your languages and virtual environments set up, install Once you've got your languages and virtual environments set up, install
the libraries like so: the libraries like so:
$ pip install -r requirements/base.txt $ pip install -r requirements/edx/base.txt
$ pip install -r requirements/post.txt $ pip install -r requirements/edx/post.txt
$ bundle install $ bundle install
$ npm install $ npm install
......
...@@ -28,12 +28,12 @@ desc "Install all python prerequisites for the lms and cms" ...@@ -28,12 +28,12 @@ desc "Install all python prerequisites for the lms and cms"
task :install_python_prereqs => "ws:migrate" do task :install_python_prereqs => "ws:migrate" do
when_changed('requirements/**') do when_changed('requirements/**') do
ENV['PIP_DOWNLOAD_CACHE'] ||= '.pip_download_cache' ENV['PIP_DOWNLOAD_CACHE'] ||= '.pip_download_cache'
sh('pip install --exists-action w -r requirements/base.txt') sh('pip install --exists-action w -r requirements/edx/base.txt')
sh('pip install --exists-action w -r requirements/post.txt') sh('pip install --exists-action w -r requirements/edx/post.txt')
# Check for private-requirements.txt: used to install our libs as working dirs, # Check for private-requirements.txt: used to install our libs as working dirs,
# or personal-use tools. # or personal-use tools.
if File.file?("requirements/private.txt") if File.file?("requirements/private.txt")
sh('pip install -r requirements/private.txt') sh('pip install -r requirements/private.txt')
end end
end unless ENV['NO_PREREQ_INSTALL'] end unless ENV['NO_PREREQ_INSTALL']
end end
\ No newline at end of file
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