configure python problem.
abartlet at samba.org
Mon Dec 17 21:28:17 UTC 2018
On Mon, 2018-12-17 at 22:17 +0100, Ralph Böhme via samba-technical
> On Mon, Dec 17, 2018 at 01:07:12PM -0800, Jeremy Allison via samba-technical wrote:
> > After most recent git update in master.
> > Previously working system.
> > git clean -d -f -x
> > buildtools/bin/waf configure --enable-pthreadpool --with-acl-support --enable-developer --enable-selftest --picky-developer --accel-aes=intelaesni
> > Checking for python version >= 2.6.0 : 3.5.4
> > python-config : not found
> > Checking for library python3.5m in LIBDIR : not found
> > Checking for library python3.5m in python_LIBPL : yes
> > Checking for header Python.h : Distutils not installed? Broken python installation? Get python-config now!
> > However:
> > $ python-config
> > Usage: /usr/bin/python-config --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--configdir
> > What got broken ? What am I missing ?
> Just ran into this today too. After installing python3-devel configure was happy
> Looks like we require Python 3 much earlier then anticipated. :)))
No, it is just the default now.
> Can anyone of the Python gurus please take a look? Or is this expected?
It is expected and and is documented in the WHATSNEW.txt:
> python3 support
> The version of python which is now the default for samba is python3.
> 'configure' & 'make' will execute using python3. It is possible to still
> specify an additional python version with '--extra-python'
> e.g. '--extra-python=/usr/bin/python2'. It should be noted that support for
> this option will be deprecated in a future release.
> What if I need to build with python2? To build with python2 you *must* set
> the 'PYTHON' environent variable to override the python3 default for both
> 'configure' and 'make' steps.
> 'PYTHON=python2 ./configure.developer'
> 'PYTHON=python2 make'
> Note: Support for python2 (with the exception of a build configured with
> 'PYTHON=python2 ./configure --disable-python' and built with
> 'PYTHON=python2 make' will be deprecated in the next release.
I trust this clarifies things.
On the message, sadly that is in waf under third_party, not our code,
so it won't be as simple as just improving the string.
Authentication Developer, Samba Team https://samba.org
Samba Development and Support, Catalyst IT
More information about the samba-technical