Commits

Anonymous committed 55be2e2

small bugfixes

Comments (0)

Files changed (2)

 
     def compile_datamodels(self, resdir):
         for src, dest in self.iter_datamodels(resdir):
+            print "compile datamodel", src, "->", dest
             self.mkpath(os.path.dirname(dest))
             momc(src, dest)
 
         if self.site_packages or self.alias:
             prescripts.append('site_packages')
 
-        if self.style == 'app':
-            prescripts.append('setup_pkgresource')
+        #if self.style == 'app':
+        #    prescripts.append('setup_pkgresource')
 
         if self.argv_emulation and self.style == 'app':
             prescripts.append('argv_emulation')
 MOMC = '/Library/Application Support/Apple/Developer Tools/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc'
 if not os.path.exists(MOMC):
     MOMC = '/Developer/Library/Xcode/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc'
+if not os.path.exists(MOMC):
+    MOMC = '/Developer/usr/bin/momc'
 
 def momc(src, dst):
     os.spawnv(os.P_WAIT, MOMC, [MOMC, src, dst])
 
 MAPC = '/Developer/Library/Xcode/Plug-ins/XDMappingModel.xdplugin/Contents/Resources/mapc'
+if not os.path.exists(MAPC):
+    MAPC = '/Developer/usr/bin/mapc'
 def mapc(src, dst):
     os.spawnv(os.P_WAIT, MAPC, [MAPC, src, dst])