rakefile updated so that python modules in the package will be installed at package install time

This commit is contained in:
John Jarvis
2012-07-11 09:23:20 -04:00
parent 06edcc0f9b
commit 039cc40598
2 changed files with 11 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ PACKAGE_REPO = "packages@gp.mitx.mit.edu:/opt/pkgrepo.incoming"
NORMALIZED_DEPLOY_NAME = DEPLOY_NAME.downcase().gsub(/[_\/]/, '-')
INSTALL_DIR_PATH = File.join(DEPLOY_DIR, NORMALIZED_DEPLOY_NAME)
PIP_REPO_REQUIREMENTS = "#{INSTALL_DIR_PATH}/repo-requirements.txt"
# Set up the clean and clobber tasks
CLOBBER.include(BUILD_DIR, REPORT_DIR, 'cover*', '.coverage', 'test_root/*_repo')
CLEAN.include("#{BUILD_DIR}/*.deb", "#{BUILD_DIR}/util")
@@ -150,6 +150,13 @@ task :package do
ln -s #{INSTALL_DIR_PATH} #{LINK_PATH}
chown makeitso:makeitso #{LINK_PATH}
# install python modules that are in the package
if [ -r #{PIP_REPO_REQUIREMENTS} ]; then
cd #{INSTALL_DIR_PATH}
pip install -r #{PIP_REPO_REQUIREMENTS}
fi
# Delete mako temp files
rm -rf /tmp/tmp*mako

3
repo-requirements.txt Normal file
View File

@@ -0,0 +1,3 @@
-e common/lib/capa
-e common/lib/mitxmako
-e common/lib/xmodule