From 778703bb59c7c4b2fafb93ee436925a2e3856e74 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 3 Jun 2022 07:30:16 +0100 Subject: [PATCH] Fix setup.py import of versioneer w/ PEP 517 Same issue as https://github.com/dandi/dandi-cli/pull/998. If versioneer is installed on the system, by appending our copy to the import path, we're going to end up colliding and mixing-and-matching. We always want to use the local copy vendored in tree. Bug: https://bugs.gentoo.org/841002 Signed-off-by: Sam James --- packages/python/plotly/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/setup.py b/packages/python/plotly/setup.py index 7ce054aab8..d437f1fcd6 100644 --- a/packages/python/plotly/setup.py +++ b/packages/python/plotly/setup.py @@ -11,7 +11,7 @@ # ensure the current directory is on sys.path; so versioneer can be imported # when pip uses PEP 517/518 build rules. # https://github.com/python-versioneer/python-versioneer/issues/193 -sys.path.append(os.path.dirname(__file__)) +sys.path.insert(0, os.path.dirname(__file__)) import versioneer