[123381] branches/gsoc14-pip2port/pypi2port.py
gaurav at macports.org
gaurav at macports.org
Fri Aug 8 15:57:27 PDT 2014
Revision: 123381
https://trac.macports.org/changeset/123381
Author: gaurav at macports.org
Date: 2014-08-08 15:57:27 -0700 (Fri, 08 Aug 2014)
Log Message:
-----------
Updated the dependency listing function
Modified Paths:
--------------
branches/gsoc14-pip2port/pypi2port.py
Modified: branches/gsoc14-pip2port/pypi2port.py
===================================================================
--- branches/gsoc14-pip2port/pypi2port.py 2014-08-08 22:31:19 UTC (rev 123380)
+++ branches/gsoc14-pip2port/pypi2port.py 2014-08-08 22:57:27 UTC (rev 123381)
@@ -557,8 +557,9 @@
if deps:
for dep in deps:
dep = dep.split('>')[0].split('=')[0]
- if not dep == "setuptools":
- file.write(' port:py-{0}\n'.format(dep))
+ dep = dep.replace('[','').replace(']','')
+ if not(dep == "setuptools" or dep == "\n" or dep == ""):
+ file.write(' port:py${python.version}-'+dep+'\n')
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/20140808/0450f26f/attachment.html>
More information about the macports-changes
mailing list