[95253] trunk/dports/python/py-numpy/Portfile
jmr at macports.org
jmr at macports.org
Sat Jul 7 19:01:20 PDT 2012
Revision: 95253
https://trac.macports.org/changeset/95253
Author: jmr at macports.org
Date: 2012-07-07 19:01:17 -0700 (Sat, 07 Jul 2012)
Log Message:
-----------
py32-numpy: delete any existing unregistered .pyc files before activating
Modified Paths:
--------------
trunk/dports/python/py-numpy/Portfile
Modified: trunk/dports/python/py-numpy/Portfile
===================================================================
--- trunk/dports/python/py-numpy/Portfile 2012-07-08 01:28:10 UTC (rev 95252)
+++ trunk/dports/python/py-numpy/Portfile 2012-07-08 02:01:17 UTC (rev 95253)
@@ -178,3 +178,14 @@
} else {
livecheck.type none
}
+
+subport py32-numpy {
+ pre-activate {
+ 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/20120707/9093643e/attachment.html>
More information about the macports-changes
mailing list