[123312] branches/gsoc14-pip2port

gaurav at macports.org gaurav at macports.org
Thu Aug 7 16:39:47 PDT 2014


Revision: 123312
          https://trac.macports.org/changeset/123312
Author:   gaurav at macports.org
Date:     2014-08-07 16:39:47 -0700 (Thu, 07 Aug 2014)
Log Message:
-----------
Updated dependencies listing

Modified Paths:
--------------
    branches/gsoc14-pip2port/pypi2port
    branches/gsoc14-pip2port/pypi2port.py

Modified: branches/gsoc14-pip2port/pypi2port
===================================================================
--- branches/gsoc14-pip2port/pypi2port	2014-08-07 23:38:43 UTC (rev 123311)
+++ branches/gsoc14-pip2port/pypi2port	2014-08-07 23:39:47 UTC (rev 123312)
@@ -539,7 +539,9 @@
         deps = dependencies(dict['name'], dict['version'], True)
         if deps:
             for dep in deps:
-                file.write('                        port:py-{0}\n'.format(dep))
+                dep = dep.split('>')[0].split('=')[0]
+                if not dep == "setuptools":
+                    file.write('                        port:py-{0}\n'.format(dep))
         file.write('\n')
         file.write('    livecheck.type      none\n')
         if master_site_exists:

Modified: branches/gsoc14-pip2port/pypi2port.py
===================================================================
--- branches/gsoc14-pip2port/pypi2port.py	2014-08-07 23:38:43 UTC (rev 123311)
+++ branches/gsoc14-pip2port/pypi2port.py	2014-08-07 23:39:47 UTC (rev 123312)
@@ -539,7 +539,9 @@
         deps = dependencies(dict['name'], dict['version'], True)
         if deps:
             for dep in deps:
-                file.write('                        port:py-{0}\n'.format(dep))
+                dep = dep.split('>')[0].split('=')[0]
+                if not dep == "setuptools":
+                    file.write('                        port:py-{0}\n'.format(dep))
         file.write('\n')
         file.write('    livecheck.type      none\n')
         if master_site_exists:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140807/b783ff56/attachment.html>


More information about the macports-changes mailing list