From 2974dc7a3771e34542ed5bd1baf88e4ced8cf139 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Fri, 27 Jan 2017 12:40:01 +0000 Subject: python: Move native wrappers to the _m5 namespace Swig wrappers for native objects currently share the _m5.internal name space with Python code. This is undesirable if we ever want to switch from Swig to some other framework for native binding (e.g., PyBind11 or Boost::Python). This changeset moves all of such wrappers to the _m5 namespace, which is now reserved for native code. Change-Id: I2d2bc12dbc05b57b7c5a75f072e08124413d77f3 Signed-off-by: Andreas Sandberg Reviewed-by: Curtis Dunham Reviewed-by: Jason Lowe-Power --- src/python/swig/pyobject.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/python/swig/pyobject.i') diff --git a/src/python/swig/pyobject.i b/src/python/swig/pyobject.i index a26f569ce..d4601d6a9 100644 --- a/src/python/swig/pyobject.i +++ b/src/python/swig/pyobject.i @@ -28,7 +28,7 @@ * Authors: Nathan Binkert */ -%module(package="m5.internal") pyobject +%module(package="_m5") pyobject %{ #include "python/swig/pyobject.hh" -- cgit v1.2.3