0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-13 13:59:21 +00:00
glibc-packages/gpkg/python-pip/fix-hardcoded-paths.patch
Ivan Max def7fed6d5
update pkgs (#260)
gpkg/alsa-lib
gpkg/clang
gpkg/compiler-rt
gpkg/fakeroot
gpkg/harfbuzz
gpkg/libdrm
gpkg/lld
gpkg/llvm
gpkg/python-pip
gpkg/krb5
gpkg/xmlto
2024-06-29 23:53:54 +03:00

20 lines
817 B
Diff

--- pip-22.3.1/src/pip/_internal/utils/appdirs.py
+++ pip-22.3.1/src/pip/_internal/utils/appdirs.py
@@ -49,4 +49,4 @@ def site_config_dirs(appname: str) -> List[str]:
return [dirval]
# Unix-y system. Look in /etc as well.
- return dirval.split(os.pathsep) + ["/etc"]
+ return dirval.split(os.pathsep) + ["@TERMUX_PREFIX@/etc"]
--- pip-22.3.1/src/pip/_vendor/platformdirs/unix.py
+++ pip-22.3.1/src/pip/_vendor/platformdirs/unix.py
@@ -79,7 +79,7 @@ def site_config_dir(self) -> str:
def _site_config_dirs(self) -> list[str]:
path = os.environ.get("XDG_CONFIG_DIRS", "")
if not path.strip():
- path = "/etc/xdg"
+ path = "@TERMUX_PREFIX@/etc/xdg"
return [self._append_app_name_and_version(p) for p in path.split(os.pathsep)]
@property