conda / constructor

tool for creating installers from conda packages
https://conda.github.io/constructor/
Other
457 stars 168 forks source link

How to supress a message related to scikit-learn? #773

Closed namannimmo10 closed 5 months ago

namannimmo10 commented 5 months ago

I get this message while I build (and run) an installer with conda constructor,

Preparing transaction: done
Executing transaction: |
/

    Installed package of scikit-learn can be accelerated using scikit-learn-intelex.
    More details are available here: https://intel.github.io/scikit-learn-intelex

    For example:

        $ conda install scikit-learn-intelex
        $ python -m sklearnex my_application.py

done
installation finished.
Thank you for installing dials-installer!

construct.yaml is as simple as:

name: dials-installer
version: "3.18.0"
channels:
  - defaults
installer_type: all
environment_file: environment.yml
initialize_by_default: true

Apparently this message about scikit-learn is common. Is there a way to suppress it? It is misleading the users of this installer. Should I pass a post installation script or is there a better workaround? Thanks!

marcoesters commented 5 months ago

There is no way to suppress this using constructor because this is part of the package installation process. This was part of the post-install script for the scikit-learn package for Anaconda. The newest builds of v1.3.0 should not have this message though, so ensure that you are using that version and that build hash of the package ends in _1 and _2.

Since this is not related to constructor, I will go ahead and close. If this doesn't answer your questions, please contact Anaconda at ContinuumIO/anaconda-issues