diff options
author | Rick van Rein <rick@openfortress.nl> | 2020-08-07 21:25:17 +0200 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2020-08-07 21:37:06 +0200 |
commit | 10516d0905f8d27031f851ebb10e88d672dfd173 (patch) | |
tree | 7631674746365073ae5da82d55273ecddfd920fc /python | |
parent | log: add timezone to timestamp for non-syslog streams (diff) | |
download | knot-10516d0905f8d27031f851ebb10e88d672dfd173.tar.xz knot-10516d0905f8d27031f851ebb10e88d672dfd173.zip |
python: allow calling from other directories
Diffstat (limited to 'python')
-rw-r--r-- | python/setup.py.in | 6 |
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', |