Giter VIP home page Giter VIP logo

Comments (16)

pkubatrh avatar pkubatrh commented on July 21, 2024 1

The atlas-devel package is what seems to be missing to be able to build numpy properly for scipy

from s2i-python-container.

NumCruncher avatar NumCruncher commented on July 21, 2024

I am facing a similar issue. Not sure what package is missing.
Any help is appreciated.

from s2i-python-container.

hhorak avatar hhorak commented on July 21, 2024

Installing atlas-devel means 2.1 M bigger image, which seems still good enough deal to me. +1 for installing atlas-devel in python images.

from s2i-python-container.

hhorak avatar hhorak commented on July 21, 2024

Installing atlas-devel means 2.1 M bigger image, which seems still good enough deal to me. +1 for installing atlas-devel in python images.

Sorry, I made a mistake. It's actually 24 M with all the deps.. Which is not that superb anymore.

Shouldn't we rather just document how to do it and users would create own image instead? Sad thing is that we're not able to do it in s2i, because we need root for installing atlas-devel package.

@bparees: Or is there a way to perform actions as root during s2i build ...?

from s2i-python-container.

bparees avatar bparees commented on July 21, 2024

@hhorak no, it's not possible to perform root actions during s2i build, particularly on openshift (where sudo is restricted).

from s2i-python-container.

bparees avatar bparees commented on July 21, 2024

numpy is a pretty common dependency, isn't it? perhaps it makes sense to do this if we intend to provide a generally useful python image.

from s2i-python-container.

hhorak avatar hhorak commented on July 21, 2024

numpy is a pretty common dependency, isn't it? perhaps it makes sense to do this if we intend to provide a generally useful python image.

Sounds correct actually, after filling my knowledge gaps, it indeed seems like numpy is very popular, so worth the 24MB.

from s2i-python-container.

bparees avatar bparees commented on July 21, 2024

let's do it.

from s2i-python-container.

pkubatrh avatar pkubatrh commented on July 21, 2024

Just FTR: Numpy can be built even without the atlas-devel package but the lapack modules needed by Scipy will not be built (and as such the Scipy build will fail). So the usefulness of this change would rather depend on the usefulness of Scipy and projects that have similar dependencies.

from s2i-python-container.

hhorak avatar hhorak commented on July 21, 2024

Thanks @pkubatrh, I think it does not change much. I think we can also add a scipy project as an example of an application that we s2i build in the test suite, so we keep this package install-able.

from s2i-python-container.

hhorak avatar hhorak commented on July 21, 2024

@pkubatrh, would you mind turning this to a PR, pls?

from s2i-python-container.

pkubatrh avatar pkubatrh commented on July 21, 2024

Looking at Scipy's dependencies more closely I noticed it also depends on a Fortran compiler (gcc-gfortran). This would make the additional size (together with atlas-devel) 40MB.

from s2i-python-container.

pkubatrh avatar pkubatrh commented on July 21, 2024

@hhorak @bparees ^ is this ok?

from s2i-python-container.

hhorak avatar hhorak commented on July 21, 2024

@pkubatrh I think 40MB is still worth doing it.

from s2i-python-container.

bparees avatar bparees commented on July 21, 2024

agree, it seems painful not to have it.

from s2i-python-container.

pkubatrh avatar pkubatrh commented on July 21, 2024

This can be closed as the PR has been merged in.

from s2i-python-container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.