about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/spdk/0001-fix-setuptools-installation.patch
blob: 3c3fb50fc1525ed7c0ee4aa3117c006ea9fa1976 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 3f718fc1873c9c138684ea019e9bd42c9b24506c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
Date: Tue, 28 Nov 2023 11:28:11 +0100
Subject: [PATCH] fix setuptools installation
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
---
 python/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/Makefile b/python/Makefile
index f835daa..b41995a 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -12,7 +12,7 @@ setup_cmd += --root $(DESTDIR)
 endif
 
 ifneq ($(CONFIG_PYDIR),)
-setup_cmd += --install-purelib $(CONFIG_PYDIR)
+setup_cmd += --root / --prefix $(CONFIG_PYDIR)
 purelibdir := $(CONFIG_PYDIR)
 else
 purelibdir := $(shell python3 -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")
-- 
2.42.0