python-mip icon indicating copy to clipboard operation
python-mip copied to clipboard

Delete binaries for other operating systems at install time

Open jurasofish opened this issue 4 years ago • 2 comments

when mip is installed it comes with binaries for windows, mac, and linux. These are very large - in my experience making mip larger than even numpy or pandas!

It would be good to delete the binaries for the other operating systems during installation of the package - perhaps something inside setup.py.

This is highly relevant to serverless computing environments which often have severely limited disk space, and it's a hassle to do this manually.

Any thoughts on whether this change would be problematic? I should be able to chuck through a PR for it some time.

jurasofish avatar Jun 23 '20 04:06 jurasofish

Hi @jurasofish . I agree. I was thinking in an alternative to install ONLY the platform specific files.
If seems that in setup.py you can specify platform specific dependencies. If we separate mip in four packages: mip cbc-mip-bin-win64 cbc-mip-bin-linux64 cbc-mip-bin-osx64

Then we could specify platform specific dependencies. What do you think @tuliotoffolo ?

h-g-s avatar Jun 23 '20 17:06 h-g-s

Let's do it, @h-g-s! In the future, we should also remove the binaries from the repo.

tuliotoffolo avatar Jun 29 '20 23:06 tuliotoffolo