[CalendarServer-changes] [15257] CalendarServer/trunk/setup.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 30 09:13:37 PDT 2015


Revision: 15257
          http://trac.calendarserver.org//changeset/15257
Author:   cdaboo at apple.com
Date:     2015-10-30 09:13:37 -0700 (Fri, 30 Oct 2015)
Log Message:
-----------
Only include cx_Oracle as an extra when we know the $ORACLE_HOME env var is defined.

Modified Paths:
--------------
    CalendarServer/trunk/setup.py

Modified: CalendarServer/trunk/setup.py
===================================================================
--- CalendarServer/trunk/setup.py	2015-10-30 15:16:00 UTC (rev 15256)
+++ CalendarServer/trunk/setup.py	2015-10-30 16:13:37 UTC (rev 15257)
@@ -358,10 +358,11 @@
 extras_requirements = {
     "LDAP": ["twextpy[LDAP]"],
     "OpenDirectory": ["twextpy[OpenDirectory]"],
-    "Oracle": ["twextpy[Oracle]", "cx_Oracle"],
     "Postgres": ["twextpy[Postgres]", "pg8000"],
 }
 
+if "ORACLE_HOME" in os.environ:
+    extras_requirements["Oracle"] = ["twextpy[Oracle]", "cx_Oracle"]
 
 
 #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20151030/cb71af6f/attachment.html>


More information about the calendarserver-changes mailing list