From: Rick van Rein Date: Fri, 7 Aug 2020 19:25:17 +0000 (+0200) Subject: python: allow calling from other directories X-Git-Tag: v3.0.0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10516d0905f8d27031f851ebb10e88d672dfd173;p=thirdparty%2Fknot-dns.git python: allow calling from other directories --- diff --git a/python/setup.py.in b/python/setup.py.in index a0c7156aee..a5e69c8a3a 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',