[95284] trunk/dports/python/py-scipy/Portfile
ram at macports.org
ram at macports.org
Sun Jul 8 08:48:23 PDT 2012
Revision: 95284
https://trac.macports.org/changeset/95284
Author: ram at macports.org
Date: 2012-07-08 08:48:19 -0700 (Sun, 08 Jul 2012)
Log Message:
-----------
py32-scipy: delete previously autogenerated .pyc files before activating
Modified Paths:
--------------
trunk/dports/python/py-scipy/Portfile
Modified: trunk/dports/python/py-scipy/Portfile
===================================================================
--- trunk/dports/python/py-scipy/Portfile 2012-07-08 14:03:31 UTC (rev 95283)
+++ trunk/dports/python/py-scipy/Portfile 2012-07-08 15:48:19 UTC (rev 95284)
@@ -160,3 +160,14 @@
} else {
livecheck.type none
}
+
+subport py32-scipy {
+ 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/20120708/fa5a75e4/attachment.html>
More information about the macports-changes
mailing list