[93508] trunk/dports/python/py-distribute/Portfile

jmr at macports.org jmr at macports.org
Thu May 24 11:47:34 PDT 2012


Revision: 93508
          https://trac.macports.org/changeset/93508
Author:   jmr at macports.org
Date:     2012-05-24 11:47:34 -0700 (Thu, 24 May 2012)
Log Message:
-----------
py-distribute: more .pyc files to delete

Modified Paths:
--------------
    trunk/dports/python/py-distribute/Portfile

Modified: trunk/dports/python/py-distribute/Portfile
===================================================================
--- trunk/dports/python/py-distribute/Portfile	2012-05-24 18:45:07 UTC (rev 93507)
+++ trunk/dports/python/py-distribute/Portfile	2012-05-24 18:47:34 UTC (rev 93508)
@@ -49,10 +49,10 @@
 
 subport py32-distribute {
     pre-activate {
-        foreach fname {easy_install site pkg_resources} {
-            set fpath "${python.pkgd}/__pycache__/${fname}.cpython-32.pyc"
-            if {[file exists $fpath] && [registry_file_registered $fpath] == "0"} {
-                file delete -force $fpath
+        set regref [registry_open $subport $version $revision $portvariants ""]
+        foreach f [registry_prop_retr $regref imagefiles] {
+            if {[file extension $f] == ".pyc" && [file exists $f] && [registry_file_registered $f] == "0"} {
+                file delete -force $f
             }
         }
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120524/f4596470/attachment.html>


More information about the macports-changes mailing list