GNU bug report logs -
#41366
[PATCH 0/4] Add Importmagic
Previous Next
Reported by: Ryan Prior <rprior <at> protonmail.com>
Date: Sun, 17 May 2020 18:33:01 UTC
Severity: normal
Tags: patch
Done: jgart <jgart <at> dismail.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Ryan Prior <rprior <at> protonmail.com> writes:
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Saturday, May 23, 2020 8:00 PM, Nicolas Goaziou <mail <at> nicolasgoaziou.fr> wrote:
>
>> OOC, are you sure Python packages need to be propagated in this case?
>
> Hi Nicholas! I tried it with the python packages in "inputs" and impotmagic.el complained about not being able to find them. I'm going to be helping with maintenance of importmagic.el so maybe that's something I can fix on the package side?
>
> At present this seems to work better. I don't know yet what the difference is between inputs and propagated-inputs when it comes to Python packages so maybe somebody else might have a better answer.
The difference is that propagated-inputs will be installed to the
profile when you 'guix install emacs-importmagic'.
Propagating these will only work if the user already has 'python' in the
profile, which sets up PYTHONPATH.
For regular executables, we solve this by "wrapping" the executable with
PYTHONPATH to avoid the need for propagation.
Ideally we'd patch importmagic.el so that it automatically sets
PYTHONPATH referring to these two packages (prepending to any existing
PYTHONPATH). I think python-shell-interpreter also should use the
absolute file name of the "python" executable so it does not have to be
installed separately.
Do you think that can work?
Thanks for chiming in Nicolas, I had completely missed those propagated
Python packages. :-)
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 124 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.