Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
/stamp-h1
/src/python/location
/src/python/location-importer
+/src/python/__init__.py
/src/systemd/location-update.service
/src/systemd/location-update.timer
/test.db
src/libloc.pc
dist_pkgpython_PYTHON = \
- src/python/__init__.py \
src/python/database.py \
src/python/downloader.py \
src/python/export.py \
src/python/importer.py \
src/python/logger.py
+pkgpython_PYTHON = \
+ src/python/__init__.py
+
+EXTRA_DIST += \
+ src/python/__init__.py.in
+
+CLEANFILES += \
+ src/python/__init__.py
+
pyexec_LTLIBRARIES = \
src/python/_location.la
# #
###############################################################################
+__version__ = "@VERSION@"
+
# Import everything from the C module
from _location import *
import urllib.parse
import urllib.request
+from . import __version__
from _location import Database, DATABASE_VERSION_LATEST
DATABASE_FILENAME = "location.db.xz"
# Update headers
headers.update({
- "User-Agent" : "location/@VERSION@",
+ "User-Agent" : "location/%s" % __version__,
})
# Set headers