Building SciPy on CentOS

Today I got the administrative papers. So it’s official – kind of. Need to set up things for this, and contact the tax office…..
Well, apart from that: wanted to build scipy on Linux, but starting the VM failed. To be expected, I moved the disk image to another location, once that was done the VM started – but is very, very slow in acting on mouse movements and clicks….
Installed scipy-1.2.1 as to be used on VMS, by simply extracting the files into a directory. But the documentation won’t tell me on how to build it all, only how to get info on the fortran compiler – with a number of warnings:

$ cd scipy-1.2.1
$ python setup.py config_fc --help-fcompiler
setup.py:377: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
warnings.warn("Unrecognized setuptools command, proceeding with "
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
Gnu95FCompiler instance properties:
archiver = ['/usr/bin/gfortran', '-cr']
compile_switch = '-c'
compiler_f77 = ['/usr/bin/gfortran', '-Wall', '-ffixed-form', '-fno-
second-underscore', '-fPIC', '-O3', '-funroll-loops']
compiler_f90 = ['/usr/bin/gfortran', '-Wall', '-fno-second-underscore',
'-fPIC', '-O3', '-funroll-loops']
compiler_fix = ['/usr/bin/gfortran', '-Wall', '-ffixed-form', '-fno-
second-underscore', '-Wall', '-fno-second-underscore', '-
fPIC', '-O3', '-funroll-loops']
libraries = ['gfortran']
library_dirs = []
linker_exe = ['/usr/bin/gfortran', '-Wall', '-Wall']
linker_so = ['/usr/bin/gfortran', '-Wall', '-Wall', '-shared']
object_switch = '-o '
ranlib = ['/usr/bin/gfortran']
version = LooseVersion ('4.8.5')
version_cmd = ['/usr/bin/gfortran', '--version']
Fortran compilers found:
--fcompiler=gnu95 GNU Fortran 95 compiler (4.8.5)
Compilers available for this platform, but not found:
--fcompiler=absoft Absoft Corp Fortran Compiler
--fcompiler=compaq Compaq Fortran Compiler
--fcompiler=g95 G95 Fortran Compiler
--fcompiler=gnu GNU Fortran 77 compiler
--fcompiler=intel Intel Fortran Compiler for 32-bit apps
--fcompiler=intele Intel Fortran Compiler for Itanium apps
--fcompiler=intelem Intel Fortran Compiler for 64-bit apps
--fcompiler=lahey Lahey/Fujitsu Fortran 95 Compiler
--fcompiler=nag NAGWare Fortran 95 Compiler
--fcompiler=pathf95 PathScale Fortran Compiler
--fcompiler=pg Portland Group Fortran Compiler
--fcompiler=vast Pacific-Sierra Research Fortran 90 Compiler
Compilers not available on this platform:
--fcompiler=hpux HP Fortran 90 Compiler
--fcompiler=ibm IBM XL Fortran Compiler
--fcompiler=intelev Intel Visual Fortran Compiler for Itanium apps
--fcompiler=intelv Intel Visual Fortran Compiler for 32-bit apps
--fcompiler=intelvem Intel Visual Fortran Compiler for 64-bit apps
--fcompiler=mips MIPSpro Fortran Compiler
--fcompiler=none Fake Fortran compiler
--fcompiler=sun Sun or Forte Fortran 95 Compiler
For compiler details, run 'config_fc --verbose' setup command.
$
Dus bouwen met gnu95, op dezelfde manier als Numpy: uitvoer naar bestanden
(terminal sessie houdt muis vast? Of is dat de VM zelf?
$ python setup.py config_fc --fcompiler=gnu95 install > scipy.log 2> scypi.err
Die is snel klaar:
$ cat scipy.log

Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:

- `pip install .` (from a git repo or downloaded source
release)
- `pip install scipy` (last SciPy release on PyPI)

lapack_opt_info:
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['/usr/lib64']
NOT AVAILABLE

NOT AVAILABLE

system_info:
NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in /usr/lib64/atlas
libraries lapack_atlas not found in /usr/lib64/atlas
numpy.distutils.system_info.atlas_threads_info
NOT AVAILABLE

atlas_info:
libraries tatlas not found in /usr/lib64/atlas
libraries lapack_atlas not found in /usr/lib64/atlas
numpy.distutils.system_info.atlas_info
NOT AVAILABLE

lapack_info:
libraries lapack not found in ['/usr/lib64']
NOT AVAILABLE

lapack_src_info:
NOT AVAILABLE

NOT AVAILABLE

$

That’s all. But now I know I have gnu95 Fortran compiler on this box; no idea what about the other messages…
To get info on build, the documentation refers to the site (scipy.org) but nothing on building the basic way. So back to the files/
Since numpy is from the same organization, it is to be expected that a very basic installation is:

$ python setup.py > scipybld.log 2> scipybld.err

Started that at about 23:00 – and it may run for hours, so keep it running overnight.