File: 0002-pass-PYTHONPATH-to-the-test-runner.patch

package info (click to toggle)
python-psutil 5.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,224 kB
  • sloc: python: 18,787; ansic: 15,202; makefile: 446; javascript: 153
file content (27 lines) | stat: -rw-r--r-- 830 bytes parent folder | download
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
From: Sandro Tosi <morph@debian.org>
Date: Sun, 10 Apr 2016 13:17:47 +0100
Subject: pass PYTHONPATH to the test runner

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@
 
 # Configurable.
 PYTHON = python3
+PYTHONPATH = .
 ARGS =
 TSCRIPT = psutil/tests/runner.py
 
@@ -45,7 +46,7 @@ BUILD_OPTS = `$(PYTHON) -c \
 # In not in a virtualenv, add --user options for install commands.
 INSTALL_OPTS = `$(PYTHON) -c \
 	"import sys; print('' if hasattr(sys, 'real_prefix') or hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix else '--user')"`
-TEST_PREFIX = PYTHONWARNINGS=always PSUTIL_DEBUG=1
+TEST_PREFIX = PYTHONWARNINGS=always PSUTIL_DEBUG=1 PYTHONPATH=$(PYTHONPATH)
 
 # if make is invoked with no arg, default to `make help`
 .DEFAULT_GOAL := help