[124073] branches/gsoc14-pip2port/pypi2port.py

gaurav at macports.org gaurav at macports.org
Sun Aug 17 23:44:14 PDT 2014


Revision: 124073
          https://trac.macports.org/changeset/124073
Author:   gaurav at macports.org
Date:     2014-08-17 23:44:14 -0700 (Sun, 17 Aug 2014)
Log Message:
-----------
Updated executable

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

Modified: branches/gsoc14-pip2port/pypi2port.py
===================================================================
--- branches/gsoc14-pip2port/pypi2port.py	2014-08-18 06:43:54 UTC (rev 124072)
+++ branches/gsoc14-pip2port/pypi2port.py	2014-08-18 06:44:14 UTC (rev 124073)
@@ -548,9 +548,14 @@
                     if item['python_version'] == 'source':
                         master_var = item['url']
                         break
-                print master_var
+#                print master_var
                 master_site = '/'.join(master_var.split('/')[0:-1])
-                print master_site
+                ext = master_var.split('/')[-1].split('.')[-1]
+                if ext == 'zip':
+                    zip_set = True
+                else:
+                    zip_set = False
+#                print master_site
         except:
             if dict['release_url']:
                 master_site = dict['release_url']
@@ -564,6 +569,10 @@
             master_site_exists = True
         else:
             master_site_exists = False
+
+        if zip_set:
+            file.write('use_zip             yes\n')
+
         file.write('distname            {0}-{1}\n\n'.format(
                    dict['name'], dict['version']))
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140817/31cba2b1/attachment.html>


More information about the macports-changes mailing list