[CalendarServer-changes] [12617] CalendarServer/trunk/bin/_build.sh

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:24:04 PDT 2014


Revision: 12617
          http://trac.calendarserver.org//changeset/12617
Author:   wsanchez at apple.com
Date:     2014-02-07 17:53:16 -0800 (Fri, 07 Feb 2014)
Log Message:
-----------
Check if there is not virtualenv and create it in init_build, cuz we need it.

Modified Paths:
--------------
    CalendarServer/trunk/bin/_build.sh

Modified: CalendarServer/trunk/bin/_build.sh
===================================================================
--- CalendarServer/trunk/bin/_build.sh	2014-02-08 01:01:03 UTC (rev 12616)
+++ CalendarServer/trunk/bin/_build.sh	2014-02-08 01:53:16 UTC (rev 12617)
@@ -97,14 +97,18 @@
 
   python="${py_bindir}/python";
 
-  project="$(setup_print name)";
-
   if [ -z "${TWEXT_PKG_CACHE-}" ]; then
     dep_packages="${dev_home}/pkg";
   else
     dep_packages="${TWEXT_PKG_CACHE}";
   fi;
 
+  if [ ! -d "${py_root}" ]; then
+    "${bootstrap_python}" -m virtualenv "${py_root}";
+  fi;
+
+  project="$(setup_print name)";
+
   export PYTHONPATH="${wd}:${PYTHONPATH:-}";
   export _DEVELOP_PROJECT_="${project}";
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/40740264/attachment.html>


More information about the calendarserver-changes mailing list