configure ignores PYTHON environment variable
Summary
Setting PYTHON=/usr/bin/python2
variable before running configure
does not actually cause Python 2 to be used. This contradicts configure --help
:
Some influential environment variables:
PYTHON path to python executable
At the same time --with-python=/usr/bin/python2
seems to work.
BIND version used
- ~"v9.11" seem to work as expected
- Affects v9.16 : a30dac54
- v9.18 and v9.19 seem to work as expected
Steps to reproduce
- PREFIX=/tmp/v9_16 PYTHON=/usr/bin/python2 ./configure
- make
- make install
- find /tmp/v9_16 | grep site-packages
What is the current bug behavior?
- Python libraries get installed into /tmp/v9_16/lib/python3.10/site-packages/isc
- System tests use
python
interpreter instead ofpython2
What is the expected correct behavior?
The specified Python interpreter is used.
Relevant logs and/or screenshots
Possible fixes
Either use the value from PYTHON variable, or remove the variable altogether.