[Python-modules-commits] [gamera] 05/12: namespace-package

Daniel Stender stender at moszumanska.debian.org
Sun Jul 16 07:24:13 UTC 2017


This is an automated email from the git hooks/post-receive script.

stender pushed a commit to branch patch-queue/debian/master
in repository gamera.

commit 131987c88256d8beff960bf234ae73cf8a3e400f
Author: Jakub Wilk <jwilk at debian.org>
Date:   Sat Oct 17 18:51:25 2015 +0200

    namespace-package
    
       Create namespace package ‘gamera.toolkit’. This allows
       python-gamera.toolkit.* packages, both those using dh_python2
       and those using python-support, to be co-importable.
       Forwarded: not-needed
    
    Gbp-Pq: Name 0005-namespace-package.patch
---
 gamera/toolkits/__init__.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gamera/toolkits/__init__.py b/gamera/toolkits/__init__.py
index e69de29..d01835d 100644
--- a/gamera/toolkits/__init__.py
+++ b/gamera/toolkits/__init__.py
@@ -0,0 +1,7 @@
+import distutils.sysconfig
+import pkgutil
+__path__ = (
+    pkgutil.extend_path(__path__, __name__) +
+    [distutils.sysconfig.get_python_lib() + '/gamera/toolkits']
+)
+del distutils, pkgutil

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/gamera.git



More information about the Python-modules-commits mailing list