From ff7d78442895e53afb534c072477f98bada4f248 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 9 Mar 2021 21:01:07 -0800 Subject: [PATCH] setup.py: fix GLOBAL_CONFIG_PATH double prefix Bug: https://bugs.gentoo.org/775053 Reported-by: Marien Zwart Signed-off-by: Zac Medico --- setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index e473e7db56..b6e798757b 100755 --- a/setup.py +++ b/setup.py @@ -502,10 +502,13 @@ def re_sub_file(path, pattern_repl_items): with codecs.open(path, "w", "utf-8") as f: f.write(data) - val_dict = { - "GLOBAL_CONFIG_PATH": self.portage_confdir, - } + val_dict = {} if create_entry_points: + val_dict.update( + { + "GLOBAL_CONFIG_PATH": self.portage_confdir, + } + ) re_sub_file( "portage/const.py", (