1. Gabriel Jacobo
  2. ignifuga

Commits

Gabriel Jacobo  committed 7a123cb

A fix for Schafer "cythonizing" code

  • Participants
  • Parent commits ce161f8
  • Branches default

Comments (0)

Files changed (1)

File tools/schafer.py

View file
     # Walk the files, arrange the package in the proper hierachy
     glue_h = ""
     glue_c = ""
-    modules = {}
     packages = [package_name,]
     for f in cfiles:
         filename = basename(f)
         module = package.split('.')[-1]
         # Remove the module from the package
         package = '.'.join(package.split('.')[:-1])
+        subpackage = package.split('.')
 
-        module_location = modules
-        for sp in package.split('.'):
-            if sp != '':
-                if not sp in module_location:
-                    module_location[sp] = {}
-                module_location = module_location[sp]
-            
-        module_location[module] = f
-        subpackage = package.split('.')
         if len(subpackage)>0:
             subpackage = subpackage[-1]
         else:
         if package not in packages:
                 packages.append(package)
 
-        #print "Cfile: %s, Package: %s, Subpackage: %s, Module: %s" % (f, package,subpackage,module)
-
         # Patch the correct paths and package name in the updated cython generated files
         if f in updatedfiles:
             log('Patching %s' % (basename(f),))