Commits

Michael Forbes  committed 71b97a9

FIX: When pip-installing, top_level.txt in egg has all ext modules.

Not sure why ext_modules is not working, but it adds all the exts to
the top_level.txt file in the egg, and then the errno module conflicts
with the builtin module. This fix explicitly adds the pygsl. prefix to
the names which solves the problem (now only pygsl appears in
top_level.txt)

  • Participants
  • Parent commits b394baa

Comments (0)

Files changed (1)

 if "bdist" in sys.argv:
     extends = "_" + str(gsl_numobj.nummodule)
 
+for _e in exts:
+    _e.name = ".".join(('pygsl', _e.name))
+
 setup (name = "pygsl",
        version = version + extends,
        #version = "snapshot_" + string.join(map(str, time.gmtime()[:3]), '_'),
        url = "http://pygsl.sourceforge.net",       
        package_dir = {'pygsl' : 'pygsl', 'pygsl.gsl_dist' : 'gsl_dist'},
        packages = ['pygsl', 'pygsl.testing', 'pygsl.statistics', 'pygsl.gsl_dist'],
-       ext_package = 'pygsl',
+       #ext_package = 'pygsl',
        ext_modules = exts,
        headers = headers
        )