New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request : Make FLAML installable with Conda #194
Comments
Can someone help with this issue? Right now catboost is the only required package unavailable from conda. I can make flaml work when catboost is not installed. Can someone help with uploading the package to conda after that? |
@MichalChromcak Thanks for taking care of it. Do I need to remove catboost from the "install_requires" field in setup.py? That will affect the pypi package. Is there a way you could skip catboost only in the conda package? |
Catboost
I tried to keep it along the way, yet it requires Unfortunately, Tarball over wheelRecommended way is also to use tarball distribution (not wheels) - would you be able to update that as well? If yes, feel free to re-use e.g. hcrystalball's CD github actions What are your thoughts on this? |
@MichalChromcak Thanks for the suggestions. @qingyun-wu I tend to remove catboost from |
Removing catboost from `install_requires' sounds good to me. I can make a PR to automlbenchmark to reflect this change. |
@MichalChromcak and @qingyun-wu v0.6.6 is published to PyPI with the CD github actions. Thanks @MichalChromcak again for recommending it. |
@MichalChromcak please wait for v0.6.7 as I am adding pandas into |
@MichalChromcak v0.6.7 is released. |
@sonichi The conda package with version v0.6.7 is available here. There are still few things to consider...
|
That's fantastic. I really appreciate it.
Dependency in
@fleuryc @qingyun-wu @ekzhu @slhuang @cdeil @yue-msr @anshumandutt @aminsaied @angela97lin @Yard1 @gianpdomiziani @bnriiitb @int-chaos any volunteer to be added to the conda feedstock maintainer? See the paragraph above. |
@sonichi glad to be helpful :) Good, we should just make sure, that if package versions in |
@MichalChromcak To confirm, if the package version in |
@sonichi One can make a manual second build with updated recipe. It might take some time (to 1 hour?) until conda install would prefer the new build for the same version…(see the two builds on the anaconda.org as an example) |
It's good to know that the same version can be overwritten, which is different from pypi packages. Thanks! |
@MichalChromcak FYI #223 (comment). There seems to be a conda package of catboost, though I've no idea how to leverage it. |
@sonichi I can look into that again if you want to extend the dependency to I dropped the idea of running optional Do you want me to try adding it? One should also make a mind in general what should and what should not be a part of conda bundle. Whether to
|
@sonichi let me know, whether to make a change still or whether the issue can be closed already please :) |
@MichalChromcak I'm with you in keeping the installation small. We don't need to include catboost in the bundle. I'm just curious what failed our earlier conda bundle if catboost is already in conda. I thought it was because catboost was not available in conda. |
@MichalChromcak could you change the required sklearn version in the conda package to be >=0.24? The reason is in #260 |
@sonichi sorry, wasn't around for a while. The I will update the sklearn version and try again if the latest release is as expected. |
@sonichi there already is conda create -n flaml
conda install -c conda-forge flaml conda list
|
@MichalChromcak that looks good to me. Thanks for double checking. |
To be realistic, no, I don't have any spare time, sorry. |
@MichalChromcak @sonichi Can I help maintain the conda package? I am very happy to do this. |
@sonichi such test might be added to the test section of the conda package creation if you want - replacing just import check with something more detailed. Is there already some code, which should be executed to check for correctness? @Shao-kun-Zhang from my end - sure, happy to have more people on board. |
@MichalChromcak ok, If there is anything I can help with, please tell me! |
@MichalChromcak what about adding the test for the example code in the main post? |
@sonichi Yes I can do that :) |
@sonichi, @Shao-kun-Zhang There were few architectural decisions made, let me comment on them... I decided to keep the test within the
On the other hand, this setup might cause out of sync behavior with the package development. So if wanted, another options are to:
As this seems nicer for the testing code locality, both above mentioned options require contributions to the Let me know, if you prefer the current way, where the conda forge build is self contained also with the test or any of the proposed changes. |
@Shao-kun-Zhang I added you to the list of maintainers (via admin web services over issue#6, that created PR#7 and I already approved the review (just mentioning the process for further extension of maintainers if you would do that later with someone else and also to mention how cool conda forge has this setup). Can you double check, that expected changes work and add comment to the PR, that you accept this? |
Thank you! It looks good.
I like option 2. We can put the test file you need in test/conda/.
|
Ok, the last change was made and conda distribution should now contain test taken from I would propose to close this now, what do you think @sonichi? |
@MichalChromcak Thanks for the great effort in helping with this issue. I really appreciate it. I'm closing it now. |
Thanks everyone ! 🎉 |
Basically the title.
Gherkin style :
conda install flaml
(orconda -c conda-forge install flaml
)The text was updated successfully, but these errors were encountered: