<div dir="ltr"><span style="font-size:13px">> Having a way to have multiple versions of the same library installed in the same switch could be very cool as well</span><div><br></div><div>For websites, I need to pull in various Javascript libraries and CSS frameworks, which I can copy into my repo manually or manage with something like Bower. However, I'd rather have everything via opam, so I started a repo for this [1]. The files of these packages are simply copied at build time, and thus there's no reason I couldn't have multiple versions of jquery installed at the same time. (I appreciate this is not a priority use case.)</div><div><br></div><div>[1] <a href="https://github.com/solvuu/opam-repo-web">https://github.com/solvuu/opam-repo-web</a></div><div> </div><div><br></div><div><br><div><span style="font-size:13px"><br></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 21, 2014 at 8:51 AM, Daniel Bünzli <span dir="ltr"><<a href="mailto:daniel.buenzli@erratique.ch" target="_blank">daniel.buenzli@erratique.ch</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Le dimanche, 21 décembre 2014 à 14:26, Peter Zotov a écrit :<br>
<span class=""><br>
> Through ocamlfind, of course, there's nothing else now.<br>
><br>
> Sure. But note that ocamlfind explicitly refuses to deal with versioning<br>
> constraints; it's even in the manual. So the dependencies of neither<br>
> A.1 nor A.2 are not expressible in META.<br>
<br>
</span>That's the point, I'm not asking ocamlfind to resolve any versioning constraints. It's all based on the name of the package (if . is not allowed in the name then substitute by another character). With this packages are able to specify a dependency on a particular version.<br>
<br>
I don't see that as a long term solution; I hope we can eventually get rid of that hideous naming resolution hydra and menagerie of meta files we have now (which basically means ocamlfind should go). However I suspect that the underlying mecanism (install each package in PKG.VERSION directory) will be similar for whatever replaces the current mess, so there's no harm in having it now.<br>
<span class="HOEnZb"><font color="#888888"><br>
Daniel<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
opam-devel mailing list<br>
<a href="mailto:opam-devel@lists.ocaml.org">opam-devel@lists.ocaml.org</a><br>
<a href="http://lists.ocaml.org/listinfo/opam-devel" target="_blank">http://lists.ocaml.org/listinfo/opam-devel</a><br>
</div></div></blockquote></div></div>