caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlfind path to META file ?
Date: Thu, 12 Nov 2015 11:27:03 +0100	[thread overview]
Message-ID: <CAPFanBE-qB41hwnHDsO2U-SCQpeKRjxvxXzz0GHzRW28gAs6Kg@mail.gmail.com> (raw)
In-Reply-To: <CA685C8CBFDE416DB598EE690544B69D@erratique.ch>

`ocamlfind install` requires that either the META file is installed in
the package directory (so your command will work), or the -metadir
option is passed and the META file is installed in some META-only
directory that is global to the ocamlfind configuration. You can query
this directory with $(ocamlfind printconf metadir) (which returns an
empty line if no such directory is used).

This means that the following logic should always find your package file:
  - if $(ocamlfind printconf metadir) is not empty, look at
    $(ocamlfind printconf metadir)/META.$PKG
  - otherwise look at
    $(ocamlfind query $PKG)/META

On Thu, Nov 12, 2015 at 11:20 AM, Daniel Bünzli
<daniel.buenzli@erratique.ch> wrote:
> Hello,
>
> Is there a way to get the path to the META file of a package ?
>
> Or will $(ocamlfind query $PKG)/META always do ?
>
> Best,
>
> Daniel
>
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs

  reply	other threads:[~2015-11-12 10:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12 10:20 Daniel Bünzli
2015-11-12 10:27 ` Gabriel Scherer [this message]
2015-11-12 10:39   ` Daniel Bünzli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPFanBE-qB41hwnHDsO2U-SCQpeKRjxvxXzz0GHzRW28gAs6Kg@mail.gmail.com \
    --to=gabriel.scherer@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=daniel.buenzli@erratique.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).