From: Vladimir B. <vba...@gm...> - 2010-11-05 01:41:02
|
Devs, I have just update from F13 to F14 via yum. Configure on a clean Madagascar directory fails with this: [bash@localhost RSFSRC]$ ./configure checking for Python ... /usr/bin/python checking Python version ... 2.7 checking for RSFROOT ... /home/bash/rsf checking for SCons ... /home/bash/rsf/bin/scons checking SCons version ... v1.2.0.r3842 Running RSFROOT=/home/bash/rsf /home/bash/rsf/bin/scons config ... ------------------------ scons: Reading SConscript files ... AttributeError: 'module' object has no attribute 'get_python_lib': File "/data/bash/RSFSRC/SConstruct", line 24: pkgdir = setenv.get_pkgdir(root) File "./framework/setenv.py", line 128: return os.path.join(get_local_site_pkgs(root),'rsf') File "./framework/setenv.py", line 31: central_site_pkgs = sysconfig.get_python_lib() ------------------------ Done with configuration. Traceback (most recent call last): File "framework/setenv.py", line 133, in <module> sys.exit(get_local_site_pkgs(verb=True)) File "framework/setenv.py", line 31, in get_local_site_pkgs central_site_pkgs = sysconfig.get_python_lib() AttributeError: 'module' object has no attribute 'get_python_lib' [bash@localhost RSFSRC]$ I checked it in my python console then: [bash@localhost ~]$ python Python 2.7 (r27:82500, Sep 16 2010, 18:03:06) [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import distutils.sysconfig >>> distutils.sysconfig.get_python_lib() '/usr/lib/python2.7/site-packages' >>> import sysconfig >>> sysconfig.get_python_lib() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'get_python_lib' >>> Why do we have that branch for 'import sysconfig' in framework/setenv.py? |