swig: make all generated files go into the m5.internal package
authorNathan Binkert <nate@binkert.org>
Sun, 12 Sep 2010 22:41:34 +0000 (15:41 -0700)
committerNathan Binkert <nate@binkert.org>
Sun, 12 Sep 2010 22:41:34 +0000 (15:41 -0700)
commit2edfcbbaee87c1a28351fc0dcd81d52d0d9102a4
tree3436d2dad1d98f200566e719add526b135ae0e08
parentafafaf1dcbab1fac3e3ba2f87dd5138d3ec08588
swig: make all generated files go into the m5.internal package

This is necessary because versions of swig older than 1.3.39 fail to
do the right thing and try to do relative imports for everything (even
with the package= option to %module).  Instead of putting params in
the m5.internal.params package, put params in the m5.internal package
and make all param modules start with param_.  Same thing for
m5.internal.enums.

Also, stop importing all generated params into m5.objects.  They are
not necessary and now with everything using relative imports we wound
up with pollution of the namespace (where builtin-range got overridden).

--HG--
rename : src/python/m5/internal/enums/__init__.py => src/python/m5/internal/enums.py
rename : src/python/m5/internal/params/__init__.py => src/python/m5/internal/params.py
src/SConscript
src/python/SConscript
src/python/m5/SimObject.py
src/python/m5/internal/enums.py [new file with mode: 0644]
src/python/m5/internal/enums/__init__.py [deleted file]
src/python/m5/internal/params.py [new file with mode: 0644]
src/python/m5/internal/params/__init__.py [deleted file]
src/python/m5/internal/swig/__init__.py [deleted file]
src/python/m5/objects/__init__.py
src/python/m5/objects/params.py [deleted file]
src/python/m5/params.py