[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using use-package
From: |
Phillip Lord |
Subject: |
Re: using use-package |
Date: |
Fri, 14 Aug 2015 10:16:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> The core part of "Packaging" in the elpa.git world basically means:
>>> - Start the package's main file with ";;; <name> --- <description>"
>>> - Sprinkle a few ";;;###autoload"s.
>>> - Add a "Package-Requires:" (when needed).
>>> This is very straightforward and can be done from the very beginning
>>> of development.
>> I use use-package to load the modules in my personal configuration,
>> which I don't intend to ever release or install as ELPA packages. Still,
>> this is a minor use.
>
> For those, Package-Requires is probably unneeded (tho if you have such
> things in your use-package you could move them there),
I generally do not do dependency stuff with use-package. In this case, I
would put a "require" statement into the secondary file. I think I will
not go the root of Package-Requires. As I said in the multi-line
discussion, I find Package-Requires: headers flawed, as they are
comments and yet still have to be a valid sexp.
>> Yes. I use cask (normally via the python wrapper), but elpakit is also
>> an option here.
>
> Not sure about Cask, but IIUC elpakit will generate a package-archive,
> whereas we just want to turn the source tree into a valid "installed ELPA
> package" without going through "make a tarball, create an
> archive-contents, package-install".
>
> I.e. all we want (to make those packages look like they were installed
> via package.el) is to create/update a *-pkg.el and a *-autoloads.el
> (we can add byte-compilation, but it's not indispensable).
Indeed. Cask doesn't have that option at the moment. It's not hard,
though
(let ((dir (make-temp-name "cask")))
(cask-cli/package dir)
(package-install-file
(concat dir
default-directory ".tar")))
that sort of thing (untested for demonstration purposes only). The
easiest way to have a package look like it was installed via package.el
is surely to install it via package.el!
Phil
- Re: using use-package, (continued)
- Re: using use-package, Thierry Volpiatto, 2015/08/14
- Re: using use-package, John Wiegley, 2015/08/13
- Re: using use-package, Phillip Lord, 2015/08/13
- Re: using use-package, Stefan Monnier, 2015/08/13
- Re: using use-package, Phillip Lord, 2015/08/13
- Re: using use-package, Stefan Monnier, 2015/08/13
- Re: using use-package,
Phillip Lord <=
- Message not available
- Re: using use-package, Stefan Monnier, 2015/08/14
- Re: using use-package, Phillip Lord, 2015/08/14
- Message not available
- Re: using use-package, Stefan Monnier, 2015/08/14
- Message not available
- Re: using use-package, Stefan Monnier, 2015/08/13
- Re: using use-package, John Yates, 2015/08/13
- Re: using use-package, John Wiegley, 2015/08/14
- Re: using use-package, Phillip Lord, 2015/08/14
- Message not available
- Re: using use-package, Stefan Monnier, 2015/08/14
- Re: using use-package, John Yates, 2015/08/14
- Message not available
- Re: using use-package, Stefan Monnier, 2015/08/14