[124072] branches/gsoc14-pip2port/pypi2port

gaurav at macports.org gaurav at macports.org
Sun Aug 17 23:43:54 PDT 2014


Revision: 124072
          https://trac.macports.org/changeset/124072
Author:   gaurav at macports.org
Date:     2014-08-17 23:43:54 -0700 (Sun, 17 Aug 2014)
Log Message:
-----------
Added use_zip feature

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

Modified: branches/gsoc14-pip2port/pypi2port
===================================================================
--- branches/gsoc14-pip2port/pypi2port	2014-08-18 06:00:24 UTC (rev 124071)
+++ branches/gsoc14-pip2port/pypi2port	2014-08-18 06:43:54 UTC (rev 124072)
@@ -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/22dbefcf/attachment.html>


More information about the macports-changes mailing list