obmc-phosphor-python3-autotools: create bbclass

Create python3 version of the obmc-phosphor-python-autotools.bbclass.

(From meta-phosphor rev: 62412417ee2db0fd23a90523a50f88060adf44b2)

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I819a6436a9c8dc7019bd6554142acb49ac4d722a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/classes/obmc-phosphor-python3-autotools.bbclass b/meta-phosphor/classes/obmc-phosphor-python3-autotools.bbclass
new file mode 100644
index 0000000..d76598a
--- /dev/null
+++ b/meta-phosphor/classes/obmc-phosphor-python3-autotools.bbclass
@@ -0,0 +1,17 @@
+inherit obmc-phosphor-utils
+inherit python3native
+
+DEPENDS += "python3"
+
+export BUILD_SYS
+export HOST_SYS
+export STAGING_INCDIR
+export STAGING_LIBDIR
+
+PYTHON_AUTOTOOLS_PACKAGE ?= "${PN}"
+
+python() {
+    for pkg in listvar_to_list(d, 'PYTHON_AUTOTOOLS_PACKAGE'):
+        set_append(d, 'FILES_%s' % pkg,
+                   d.getVar('PYTHON_SITEPACKAGES_DIR', True))
+}