[SciPy-Dev] SciPy dependencies

Ralf Gommers ralf.gommers at gmail.com
Wed Mar 21 11:32:42 EDT 2018


On Wed, Mar 21, 2018 at 12:04 AM, Peter Balazovic <balazovic.peter at gmail.com
> wrote:

> Dears,
>
> I am trying to get installed SciPy under Yocto. I encounter compile error:
>
> ERROR: scipy-1.0.0-r0 do_compile: Function failed: do_compile (log file is located at ../tmp/work/cortexa9hf-neon-poky-linux-gnueabi/scipy/1.0.0-r0/temp/log.do_compile.5023)
>     Log data follows:| DEBUG: Executing shell function do_compile
> | ERROR: python setup.py build execution failed.| ../tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'|   warnings.warn(msg)| lapack_opt_info:| openblas_lapack_info:|   libraries openblas not found in ['../tmp/sysroots/x86_64-linux/usr/lib']|   NOT AVAILABLE
>
> The SciPy install setup.py looks for openBLAS in different directory
> *x86_64-linux* instead of *target-arm* directory.
> I have already installed openBLAS and it is located at *target-arm*
>  sysroot.
>
> ./tmp/sysroots/target-arm/usr/lib/libopenblas.so
> ./tmp/sysroots/target-arm/usr/lib/libopenblas.a
> ./tmp/sysroots/target-arm/usr/include/openblas_config.h
>
> With building Yocto there are three "build" directories *target-arm* (target
> sysroot), *target-arm-tcbootstrap* (intermediate directory for the
> compiler bootstrap), and *x86_64-linux* (host tools and libraries). The
> openBLAS is installed within *target-arm* sysroot.
>
> My question is how to tell and redirect SciPy installer to look for
> openBLAS (and other dependencies) at *target-arm* directory (
> *./tmp/sysroots/target-arm/*)?
>

Look at the example in site.cfg.example in the root dir of the repo, there
you can specify paths.

Cheers,
Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20180321/be3c2fbf/attachment-0001.html>


More information about the SciPy-Dev mailing list