summaryrefslogtreecommitdiffstats
path: root/extras/python
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2019-02-22 15:17:48 +0100
committergluster-ant <bugzilla-bot@gluster.org>2019-02-22 15:17:48 +0100
commit29cd2e760da3cf7299e8e978e388d9b262c370a8 (patch)
treeeca0d573cedee282672b17202a2e04c36a3f71d3 /extras/python
parent7d46dbb543b723e698a6ceef7d694c23a9aff40c (diff)
downloadglusterfs-29cd2e760da3cf7299e8e978e388d9b262c370a8.tar.gz
glusterfs-29cd2e760da3cf7299e8e978e388d9b262c370a8.tar.xz
glusterfs-29cd2e760da3cf7299e8e978e388d9b262c370a8.zip
build: include gluster/__init__.* files for python packaging
The gluster/__init__.py file was originaly part of the glupy installation. This file is required to have the python-gluster package function correctly, it is expected to provide the 'gluster' namespace for other python packages (like from the libgfapi-python project). Because glupy does not exist anymore, this file is now added to in a new extras/python directory. Change-Id: I14fe959778ee3344d7d54ba342c7928a4d8080a2 Fixes: c3fcff9ccbfcec1be242fd5cf210c9995586b078 Fixes: 8293d21280fd6ddfc9bb54068cf87794fc6be207 Updates: bz#1642810 Signed-off-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'extras/python')
-rw-r--r--extras/python/Makefile.am7
-rw-r--r--extras/python/__init__.py2
2 files changed, 9 insertions, 0 deletions
diff --git a/extras/python/Makefile.am b/extras/python/Makefile.am
new file mode 100644
index 0000000000..7d81fa0319
--- /dev/null
+++ b/extras/python/Makefile.am
@@ -0,0 +1,7 @@
+if HAVE_PYTHON
+# Install __init__.py into the Python site-packages area
+pypkgdir = @BUILD_PYTHON_SITE_PACKAGES@/gluster
+pypkg_PYTHON = __init__.py
+endif
+
+EXTRA_DIST = __init__.py
diff --git a/extras/python/__init__.py b/extras/python/__init__.py
new file mode 100644
index 0000000000..3ad9513f40
--- /dev/null
+++ b/extras/python/__init__.py
@@ -0,0 +1,2 @@
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)