[cig-commits] r5232 - cs/merlin/trunk/merlin/command

leif at geodynamics.org leif at geodynamics.org
Thu Nov 9 19:10:57 PST 2006


Author: leif
Date: 2006-11-09 19:10:57 -0800 (Thu, 09 Nov 2006)
New Revision: 5232

Modified:
   cs/merlin/trunk/merlin/command/install_deps.py
Log:
I trimmed a little to much from my 'install_deps' command.
It turns out that unless the 'egg_info' command is run --
and the metadata thus written to disk -- the dependencies
aren't processed!  The control flow is two convoluted for
me to figure out how to avoid this.  (I'm so tired of
imperative programming languages...)


Modified: cs/merlin/trunk/merlin/command/install_deps.py
===================================================================
--- cs/merlin/trunk/merlin/command/install_deps.py	2006-11-10 01:59:45 UTC (rev 5231)
+++ cs/merlin/trunk/merlin/command/install_deps.py	2006-11-10 03:10:57 UTC (rev 5232)
@@ -57,6 +57,14 @@
         )
 
     def install_dependencies(self):
+
+        ## NYI: Not sure how to avoid 'egg_info' below... unless the
+        ## metadata is written to disk, the dependencies aren't
+        ## processed.
+        
+        # Ensure metadata is up-to-date
+        self.run_command('egg_info')
+        
         # postprocess the installed distro, fixing up .pth, installing scripts,
         # and handling requirements
         self.process_distribution(None, self.dist, not self.no_deps)



More information about the cig-commits mailing list