Conda is a horrible mess

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Conda is a horrible mess

trident766
I have been working non-stop trying to get my software to work with the conda package management system. My work uses conda so I need to get my software to install in existing conda environments in order to work.

The problem for me is that I have software hosted on different websites, but conda does not allow you to specify any urls for your dependencies in your package.

The best you can do is tell the user to add a list of urls to their configuration file, and even this won't work for me since this method does not permit the user to associate package names with dependency urls, which I need to do since some of my dependencies exist on both websites.

Conda does give you the option to give your packages a post-install shell script, so I tried doing this, and put commands to install the packages in the post-install script. But when I did this it installed the packages in the post-install script, but for unknown reasons updated everything to the most recent version which I did not want. I found this strange because when I remove the post-install script from the package and instead run it manually after the installation, it works.

I have been trying to hack around this issue non-stop since Friday. Eventually I got so frustrated I gave up on making a conda package all together and in under a minute I just made a 5 line shell script that does what I want. The script basically makes a few calls to "conda install" for the dependencies that I want, with the parameters I want, including url. It works, but the problem is it is not uninstallable - you would have to uninstall it manually. Also, if programmers at work see this, they will definitely ridicule me for it, and tell me that this is a band-aid and that I need to get my packages to work "the right way".
Reply | Threaded
Open this post in threaded view
|

Re: Conda is a horrible mess

fschmidt
Administrator
Luan uses shell scripts for install and uninstall.  I have no intention of ever using a modern package manager.