commit: ff7d78442895e53afb534c072477f98bada4f248 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Wed Mar 10 05:01:07 2021 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Wed Mar 10 05:14:02 2021 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ff7d7844
setup.py: fix GLOBAL_CONFIG_PATH double prefix Bug: https://bugs.gentoo.org/775053 Reported-by: Marien Zwart <marien.zwart <AT> gmail.com> Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index e473e7db5..b6e798757 100755 --- a/setup.py +++ b/setup.py @@ -502,10 +502,13 @@ class x_install_lib(install_lib): 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", (
