From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pkgcore/pkgcore:master commit in: /
Date: Thu, 10 Nov 2022 19:17:56 +0000 (UTC) [thread overview]
Message-ID: <1668107820.cdcb2e592c011254b55f5261ffc7b2c827b7c2ef.arthurzam@gentoo> (raw)
commit: cdcb2e592c011254b55f5261ffc7b2c827b7c2ef
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 10 19:17:00 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 10 19:17:00 2022 +0000
URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=cdcb2e59
_const: fallback to sys.base_prefix when installed in venv
Bug: https://bugs.gentoo.org/880693
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
py_build.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/py_build.py b/py_build.py
index f844b1c2a..1a5a4559e 100644
--- a/py_build.py
+++ b/py_build.py
@@ -28,12 +28,12 @@ def write_pkgcore_lookup_configs(cleanup_files):
with open(path, "w") as f:
os.chmod(path, 0o644)
f.write(textwrap.dedent("""\
- from os.path import join, abspath
+ from os.path import abspath, exists, join
import sys
- from snakeoil import process
-
INSTALL_PREFIX = abspath(sys.prefix)
+ if not exists(join(INSTALL_PREFIX, 'lib/pkgcore')):
+ INSTALL_PREFIX = abspath(sys.base_prefix)
DATA_PATH = join(INSTALL_PREFIX, 'share/pkgcore')
CONFIG_PATH = join(DATA_PATH, 'config')
LIBDIR_PATH = join(INSTALL_PREFIX, 'lib/pkgcore')
next reply other threads:[~2022-11-10 19:17 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-10 19:17 Arthur Zamarin [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-06-02 5:48 [gentoo-commits] proj/pkgcore/pkgcore:master commit in: / Arthur Zamarin
2025-06-01 7:04 Arthur Zamarin
2025-06-01 6:58 Arthur Zamarin
2025-04-11 18:54 Arthur Zamarin
2025-01-24 7:33 Arthur Zamarin
2024-09-06 11:15 Arthur Zamarin
2024-03-29 16:49 Arthur Zamarin
2024-03-27 19:29 Arthur Zamarin
2024-03-09 18:07 Arthur Zamarin
2024-01-26 19:56 Arthur Zamarin
2024-01-26 19:56 Arthur Zamarin
2024-01-26 9:36 Arthur Zamarin
2024-01-26 9:36 Arthur Zamarin
2024-01-25 15:48 Arthur Zamarin
2024-01-25 15:48 Arthur Zamarin
2024-01-25 15:48 Arthur Zamarin
2024-01-19 9:56 Arthur Zamarin
2024-01-15 17:04 Arthur Zamarin
2023-12-22 15:44 Arthur Zamarin
2023-11-24 15:17 Arthur Zamarin
2023-08-29 18:23 Arthur Zamarin
2023-08-05 19:00 Arthur Zamarin
2023-04-21 6:10 Arthur Zamarin
2023-03-01 19:47 Arthur Zamarin
2023-02-02 20:30 Arthur Zamarin
2023-01-19 19:36 Arthur Zamarin
2023-01-17 20:50 Arthur Zamarin
2022-12-27 18:49 Arthur Zamarin
2022-12-25 19:45 Arthur Zamarin
2022-12-25 19:34 Arthur Zamarin
2022-11-10 4:59 Arthur Zamarin
2022-10-04 10:20 Arthur Zamarin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1668107820.cdcb2e592c011254b55f5261ffc7b2c827b7c2ef.arthurzam@gentoo \
--to=arthurzam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox