[SSSD] [PATCH] CONFIGURE: Prefer python2

Pavel Reichl preichl at redhat.com
Wed Jun 11 13:22:42 UTC 2014


On Tue, 2014-06-10 at 16:16 +0200, Pavel Reichl wrote:
> On Mon, 2014-06-09 at 09:15 +0200, Lukas Slebodnik wrote:
> > ehlo,
> > 
> > The configure script failed with python3
> > 
> > checking for python... /usr/bin/python
> > checking for python version... 3.3
> > checking for python platform... linux
> > checking for python script directory... ${prefix}/lib/python3.3/site-packages
> > checking for python extension module directory... ${exec_prefix}/lib64/python3.3/site-packages
> > checking for headers required to compile python extensions...   File "<string>", line 1
> >     import sys; print sys.prefix
> >                         ^
> > SyntaxError: invalid syntax
> >   File "<string>", line 1
> >     import sys; print sys.exec_prefix
> >                         ^
> > SyntaxError: invalid syntax
> > not found
> > configure: error: Could not find python headers
> > 
> > 
> > checking for python... /usr/bin/python
> > checking for working python...   File "<string>", line 1
> >     from distutils import sysconfig;             print '-I' + sysconfig.get_python_inc() +             ' -I' + sysconfig.get_python_inc(plat_specific=True) + ' ' +             sysconfig.get_config_var('BASECFLAGS')
> >                                                           ^
> > SyntaxError: invalid syntax
> >   File "<string>", line 1
> >     from distutils import sysconfig;             print " ".join(sysconfig.get_config_var('LIBS').split() +             sysconfig.get_config_var('SYSLIBS').split()) +             ' -lpython' + sysconfig.get_config_var('VERSION') +             ' -L' + sysconfig.get_config_var('LIBDIR')
> >                                                          ^
> > SyntaxError: invalid syntax
> > yes
> > checking for Py_ssize_t... yes
> > checking for PySet_New... no
> > checking for PySet_Add... no
> > 
> > 
> > How to test?
> >     * use distribution with default python >=3
> >     * test on fedora 20
> >         - python, python3 packages should be installed
> >         - cd /usr/bin/
> >         - unlink python
> >         - ln -s python3 python
> > 
> > Do not forget to change symling after testing :-)
> > 
> > Patch is attached.
> > 
> > LS
> > _______________________________________________
> > sssd-devel mailing list
> > sssd-devel at lists.fedorahosted.org
> > https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
> 
> Hello Lukas,
> 
> I'm still seeing following when calling reconfig:
> 
> > checking for python2 platform... (cached) linux2
> > checking for python2 script directory... (cached) ${prefix}/lib/python2.7/site-packages
> > checking for python2 extension module directory... (cached) ${exec_prefix}/lib64/python2.7/site-packages
> > checking for headers required to compile python extensions... found
> > checking for python2... (cached) /usr/bin/python
> > checking for working python...   File "<string>", line 1
> >     from distutils import sysconfig;             print '-I' + sysconfig.get_python_inc() +             ' -I' + sysconfig.get_python_inc(plat_specific=True) + ' ' +             sysconfig.get_config_var('BASECFLAGS')
> >                                                           ^
> > SyntaxError: invalid syntax
> >   File "<string>", line 1
> >     from distutils import sysconfig;             print " ".join(sysconfig.get_config_var('LIBS').split() +             sysconfig.get_config_var('SYSLIBS').split()) +             ' -lpython' + sysconfig.get_config_var('VERSION') +             ' -L' + sysconfig.get_config_var('LIBDIR')
> >                                                          ^
> > SyntaxError: invalid syntax
> > yes
> > checking for Py_ssize_t... (cached) yes
> > checking for PySet_New... (cached) yes
> > checking for PySet_Add... (cached) yes
> 
> Could you have a look?
> 
> Thanks, 
> 
> PR
> 
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel

I have investigated the issue personally with Lukas but we were not able
to find out the root of the problem. 

Rebooting the machine seems to solve the issue and I'm no longer able to
replicate the problem.

Still it would be nice if somebody else tested the patch.

Thanks,
PR





More information about the sssd-devel mailing list