From: Emily Date: Fri, 20 Sep 2019 13:48:08 +0000 (+0100) Subject: setup: improve repository detection. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ef4ab56d259cf9bedd09f0b818ae54161c55109;p=nmigen.git setup: improve repository detection. --- 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(