You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CMake file only looks in the main python site directory, not in the other directories. Therefore, it fails to find a custom numpy installation via pip, which is however necessary if some other library requires a more recent version of numpy than available from the distribution's (here Ubuntu) packages.
See the following Dockerfile, which should work without the ln -s line, but doesn't.
FROM ubuntu:18.04
RUN apt-get -qy update && apt-get -qy install python3-pip
RUN apt-get -qy install cmake gfortran libopenblas-dev
RUN pip3 install numpy scikit-build
# BUG: doesn't work without this line:
RUN ln -s /usr/local/lib/python3.6/dist-packages/numpy /usr/lib/python3/dist-packages/numpy
RUN pip3 install slycot
The correct path to look for numpy (required for the f2py headers) can be determined with: python3 -c "from os.path import dirname; import numpy; print(dirname(dirname(numpy.__file__)))"
Activity
roryyorke commentedon Jun 18, 2019
@jakevdp proposed this
roryyorke commentedon Jun 21, 2019
This is fixed in #67. Hopefully soon available in 0.3.5 (#70).
Please reopen if the bug is still there on 0.3.5.