summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorRick van Rein <rick@openfortress.nl>2020-08-07 21:25:17 +0200
committerDaniel Salzman <daniel.salzman@nic.cz>2020-08-07 21:37:06 +0200
commit10516d0905f8d27031f851ebb10e88d672dfd173 (patch)
tree7631674746365073ae5da82d55273ecddfd920fc /python
parentlog: add timezone to timestamp for non-syslog streams (diff)
downloadknot-10516d0905f8d27031f851ebb10e88d672dfd173.tar.xz
knot-10516d0905f8d27031f851ebb10e88d672dfd173.zip
python: allow calling from other directories
Diffstat (limited to 'python')
-rw-r--r--python/setup.py.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/setup.py.in b/python/setup.py.in
index a0c7156ae..a5e69c8a3 100644
--- a/python/setup.py.in
+++ b/python/setup.py.in
@@ -1,5 +1,8 @@
import setuptools
+from os import path
+here = path.dirname (path.realpath (__file__))
+
setuptools.setup(
name='libknot',
version='@PACKAGE_VERSION@',
@@ -9,6 +12,9 @@ setuptools.setup(
url='https://gitlab.nic.cz/knot/knot-dns',
license='GPL-3.0',
packages=['libknot'],
+ package_dir = {
+ 'libknot': path.join (here, 'libknot'),
+ },
classifiers=[ # See https://pypi.org/classifiers
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',