File: 0002-manual-pythonpath.patch

package info (click to toggle)
pyx3 0.16-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 3,884 kB
  • sloc: python: 22,065; ansic: 130; makefile: 84; sh: 8
file content (21 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Stuart Prescott <stuart@debian.org>
Date: Fri, 7 Nov 2025 13:48:32 +1100
Subject: Add back module to PYTHONPATH for building manual

---
 manual/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/manual/Makefile b/manual/Makefile
index a135935..7e2c521 100644
--- a/manual/Makefile
+++ b/manual/Makefile
@@ -39,7 +39,7 @@ doctest:
 figs: $(patsubst %.py, %.png, $(filter-out conf.py,$(wildcard *.py)))
 
 %.pdf: %.py
-	$(PYTHON) $^
+	PYTHONPATH=$(CURDIR)/.. $(PYTHON) $^
 
 %.png: %.pdf
 	$(GS) -r100 -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pngalpha -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ $^