Skip to content

Commit d924b1c

Browse files
committed
PYTHON: Export a variable explicitly to access it
If the variable is not explicitly exported or passed to the configuration command, then it will be initialized by the configure script as: PYTHON=/usr/bin/python3.11 on bookworm PYTHON=/usr/bin/python3.10 on jammi
1 parent 51d6491 commit d924b1c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

debian/rules.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ SRCDIR = $(CURDIR)/src
3737
DESTDIR=$(CURDIR)/debian/tmp
3838
DEV_PACKAGE_NAME=@MAIN_PACKAGE_NAME@-dev
3939

40+
export PYTHON=/usr/bin/python3
41+
4042
%:
4143
dh $@ -D$(SRCDIR)
4244

4345
override_dh_auto_configure:
4446
cd src && ./autogen.sh
45-
cd src && PYTHON=/usr/bin/python3 ./configure \
47+
cd src && ./configure \
4648
--prefix=/usr --sysconfdir=/etc \
4749
--mandir=/usr/share/man \
4850
$(configure_realtime_arg) \

0 commit comments

Comments
 (0)