python-autotools: add configuration option

Allow class to be used on non-PN packages, by adding
a variable to configure which package the python path
is added to 'FILES' for.

Change-Id: I4c00e949ea71074a5b7abd36b430f90d3eb4ab51
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass b/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass
index 408d15c..5a8e1e2 100644
--- a/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-python-autotools.bbclass
@@ -1,3 +1,4 @@
+inherit obmc-phosphor-utils
 inherit pythonnative
 
 export BUILD_SYS
@@ -5,4 +6,10 @@
 export STAGING_INCDIR
 export STAGING_LIBDIR
 
-FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}"
+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))
+}