diff options
-rw-r--r-- | bindings/python/Makefile.am | 25 | ||||
-rw-r--r-- | bindings/python/__init__.py | 6 |
2 files changed, 19 insertions, 12 deletions
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index 8dba92c..1a6a396 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -1,8 +1,9 @@ SUBDIRS = examples -EXTRA_DIST = \ +EXTRA_DIST = \ gpod.i \ - ipod.py + ipod.py \ + __init__.py CLEANFILES = \ *.py* \ @@ -29,16 +30,16 @@ _gpod.so: gpod_wrap.o $(CC) $(MODULE_LIBS) @PYTHON_LDFLAGS@ gpod_wrap.o -o $@ install-pythonDATA: $(python_DATA) - $(mkinstalldirs) $(DESTDIR)$(pythondir) - $(INSTALL_PROGRAM) _gpod.so $(DESTDIR)$(pythondir)/_gpod.so - $(INSTALL_DATA) gpod.py $(DESTDIR)$(pythondir)/gpod.py - $(INSTALL_DATA) ipod.py $(DESTDIR)$(pythondir)/ipod.py - $(PYTHON) -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod.py")' - $(PYTHON) -O -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod.py")' - $(PYTHON) -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/ipod.py")' - $(PYTHON) -O -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/ipod.py")' + $(mkinstalldirs) $(DESTDIR)$(pythondir)/gpod + $(INSTALL_PROGRAM) _gpod.so $(DESTDIR)$(pythondir)/gpod/_gpod.so + $(INSTALL_DATA) __init__.py $(DESTDIR)$(pythondir)/gpod/__init__.py + $(INSTALL_DATA) gpod.py $(DESTDIR)$(pythondir)/gpod/gpod.py + $(INSTALL_DATA) ipod.py $(DESTDIR)$(pythondir)/gpod/ipod.py + $(PYTHON) -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod/gpod.py")' + $(PYTHON) -O -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod/gpod.py")' + $(PYTHON) -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod/ipod.py")' + $(PYTHON) -O -c 'from py_compile import compile; compile("$(DESTDIR)$(pythondir)/gpod/ipod.py")' uninstall-pythonDATA: $(python_DATA) - rm -f $(DESTDIR)$(pythondir)/_gpod.so - rm -f $(DESTDIR)$(pythondir)/gpod.py $(DESTDIR)$(pythondir)/ipod.py + rm -rf $(DESTDIR)$(pythondir)/gpod endif diff --git a/bindings/python/__init__.py b/bindings/python/__init__.py new file mode 100644 index 0000000..05a8159 --- /dev/null +++ b/bindings/python/__init__.py @@ -0,0 +1,6 @@ +from gpod import * +from ipod import * + +__all__ = ["DatabaseException", "TrackException", + "Database","Track","Playlist"] + |