[petsc-dev] Do we still need to support python 2.4?

Barry Smith bsmith at mcs.anl.gov
Wed Oct 14 10:51:36 CDT 2015


  Don't build from source, just get the prebuilt packages


> On Oct 13, 2015, at 11:10 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> 
> On Tue, 13 Oct 2015, Barry Smith wrote:
> 
>>> Actually I don't think python is trivial for most end-users to install
>>> [with all the modules - like ssl, compression and others stuff that
>>> configure requires].
>> 
>>   It is on Mac :-)
> 
> Well the build isn't clean on OSX.
> 
>>>>>>>> 
> In file included from /Users/balay/soft/build/Python-2.6.9/Modules/_tkinter.c:67:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h'
>      file not found
> #       include <X11/Xlib.h>
>                ^
> 1 error generated.
> 
> Failed to find the necessary bits to build these modules:
> _bsddb             _hashlib           _sqlite3        
> _ssl               bsddb185           dbm             
> dl                 gdbm               imageop         
> linuxaudiodev      nis                ossaudiodev     
> readline           spwd               sunaudiodev     
> zlib                                                  
> To find the necessary bits, look in setup.py in detect_modules() for the module's name.
> 
> 
> Failed to build these modules:
> _tkinter                                              
> <<<<<<<<<
> 
> However configure on osx with python26 is running to completion.
> Looks like ssl is not critical [its required for https://foo.tar.gz
> URLs but have http:// fallback urls for such things]
> 
> 
> And my build on ubuntu 12.04 isn't working [So I won't use this for python26 tests]
> 
>>>>>> 
> /scratch/balay/petsc.x/config/BuildSystem/config/framework.py:60: DeprecationWarning: the md5 module is deprecated; use hashlib instead
> <snip>
>  File "/scratch/balay/petsc.x/config/BuildSystem/config/framework.py", line 60, in <module>
>    from md5 import new as new_md5
>  File "/homes/petsc/soft/linux-Ubuntu_12.04-x86_64/Python-2.6.9/lib/python2.6/md5.py", line 10, in <module>
>    from hashlib import md5
>  File "/homes/petsc/soft/linux-Ubuntu_12.04-x86_64/Python-2.6.9/lib/python2.6/hashlib.py", line 138, in <module>
>    sha224 = __get_builtin_constructor('sha224')
>  File "/homes/petsc/soft/linux-Ubuntu_12.04-x86_64/Python-2.6.9/lib/python2.6/hashlib.py", line 66, in __get_builtin_constructor
>    import _sha256
> ImportError: No module named _sha256
> <<<<<<<<
> 
> [_hashlib is missing on OSX aswell - but configure still works on OSX?]
> 
> We already have opensolaris with python2.6 as default - and might add
> RHEL6 (clone) in the test mix later. [Since configure succeeds with
> OSX+python2.6 - I can use it aswell.
> 
> Satish




More information about the petsc-dev mailing list