[87811] trunk/dports/python/py27-novaclient

jameskyle at macports.org jameskyle at macports.org
Tue Dec 6 22:46:45 PST 2011


Revision: 87811
          http://trac.macports.org/changeset/87811
Author:   jameskyle at macports.org
Date:     2011-12-06 22:46:42 -0800 (Tue, 06 Dec 2011)
Log Message:
-----------
added patch files for requirments error in py27-novaclient

Modified Paths:
--------------
    trunk/dports/python/py27-novaclient/Portfile

Added Paths:
-----------
    trunk/dports/python/py27-novaclient/files/
    trunk/dports/python/py27-novaclient/files/patch-setup.py.diff

Modified: trunk/dports/python/py27-novaclient/Portfile
===================================================================
--- trunk/dports/python/py27-novaclient/Portfile	2011-12-07 06:46:41 UTC (rev 87810)
+++ trunk/dports/python/py27-novaclient/Portfile	2011-12-07 06:46:42 UTC (rev 87811)
@@ -22,7 +22,9 @@
 git.url           https://github.com/rackspace/${distname}.git
 git.branch        ${version}
 
-depends_lib      port:py27-prettytable
+depends_lib      port:py27-prettytable \
+                 port:py27-httplib2
+patchfiles       patch-setup.py.diff
 pre-fetch {
     ui_msg "-->  Fetching from git repository..."
 }

Added: trunk/dports/python/py27-novaclient/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py27-novaclient/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py27-novaclient/files/patch-setup.py.diff	2011-12-07 06:46:42 UTC (rev 87811)
@@ -0,0 +1,15 @@
+--- setup.py.orig	2011-12-06 22:42:34.000000000 -0800
++++ setup.py	2011-12-06 22:42:42.000000000 -0800
+@@ -17,7 +17,11 @@
+ import sys
+ 
+ 
+-requirements = ["httplib2", "argparse", "prettytable"]
++requirements = ["httplib2", "prettytable"]
++
++if sys.version_info < (2, 7):
++        requirements.append("argparse")
++
+ if sys.version_info < (2, 6):
+     requirements.append("simplejson")
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111206/c914ad25/attachment.html>


More information about the macports-changes mailing list