From 6ef4ab56d259cf9bedd09f0b818ae54161c55109 Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 20 Sep 2019 14:48:08 +0100 Subject: [PATCH] setup: improve repository detection. --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 33ea54c..b3da5d2 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,11 @@ from setuptools import setup, find_packages def scm_version(): def local_scheme(version): return version.format_choice("+{node}", "+{node}.dirty") - return {"version_scheme": "guess-next-dev", "local_scheme": local_scheme} + return { + "relative_to": __file__, + "version_scheme": "guess-next-dev", + "local_scheme": local_scheme + } setup( -- 2.30.2