Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 43 lines 1.3 kB view raw
1From a2d5d973f53efb11bdcaecbd0099df9714bc287f Mon Sep 17 00:00:00 2001 2From: Maximilian Bosch <maximilian@mbosch.me> 3Date: Tue, 8 Feb 2022 19:35:35 +0100 4Subject: [PATCH] Set `base` to an empty value 5 6`DESTDIR` ensures that everything lands in the correct location (i.e. 7the target store-path on Nix), within this path, everything should be 8moved into `/lib` and `/share`. 9--- 10 setup.py | 17 ++--------------- 11 1 file changed, 2 insertions(+), 15 deletions(-) 12 13diff --git a/setup.py b/setup.py 14index 1f0a58b..f7baa41 100644 15--- a/setup.py 16+++ b/setup.py 17@@ -8,21 +8,8 @@ from pathlib import Path 18 19 from setuptools import setup 20 21-share = Path(sys.prefix, 'share') 22-base = '/usr' 23-if os.uname().sysname == 'Darwin': 24- base = '/usr/local' 25-lib = Path(base, 'lib', 'password-store', 'extensions') 26- 27-if '--user' in sys.argv: 28- if 'PASSWORD_STORE_EXTENSIONS_DIR' in os.environ: 29- lib = Path(os.environ['PASSWORD_STORE_EXTENSIONS_DIR']) 30- else: 31- lib = Path.home() / '.password-store' / '.extensions' 32- if 'XDG_DATA_HOME' in os.environ: 33- share = Path(os.environ['XDG_DATA_HOME']) 34- else: 35- share = Path.home() / '.local' / 'share' 36+share = Path('share') 37+lib = Path('lib', 'password-store', 'extensions') 38 39 setup( 40 data_files=[ 41-- 422.33.1 43