X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython-cffi%2Fsetup.py;h=55fb2d24f832b49e2730db879309b441a58a0a78;hp=1effcfc6feec93a7528d95819bc445f66c42a9b6;hb=HEAD;hpb=81057164cddf6a5c1d4c30a23767c4de8e615c1c diff --git a/bindings/python-cffi/setup.py b/bindings/python-cffi/setup.py index 1effcfc6..55fb2d24 100644 --- a/bindings/python-cffi/setup.py +++ b/bindings/python-cffi/setup.py @@ -1,14 +1,9 @@ -import pathlib - import setuptools +from _notmuch_config import * - -THIS_FILE = pathlib.Path(__file__).absolute() -PROJECT_ROOT = THIS_FILE.parent.parent.parent -with open(PROJECT_ROOT.joinpath('version')) as fp: +with open(NOTMUCH_VERSION_FILE) as fp: VERSION = fp.read().strip() - setuptools.setup( name='notmuch2', version=VERSION,