[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Subdirectories in package .tar archives
From: |
Stefan Monnier |
Subject: |
Re: Subdirectories in package .tar archives |
Date: |
Sat, 15 May 2021 15:40:51 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> is it possible/well-defined to have subdirectories in Elisp packages?
Yes.
> E.g. in MELPA documentation I see that "Any file specified at any
> path in the repository is copied to the root of the package".
> Is there a good reason for it, or is it rather a limitation of MELPA?
It's a limitation of MELPA linked to a limitation of ELPA.
IIRC the main limitation in this respect in ELPA is that the
`<pkg->-autoloads.el` file created during installation only collects
autoload cookies from .el files in the package's main directory.
Another related one is that the package's Texinfo doc is expected to
come with the `.info` and a `dir` files in the root dir.
You can partly circumvent those issues if you create your own autoloads
file somehow (either before packaging the tarball, or as part of the
byte-compilation performed after installation) and/or set the
`Info-directory-list` yourself (from the autoloads file, presumably).
Stefan