Glenn Morris <r...@gnu.org> writes: > Glenn Morris wrote: > >> fresh Emacs instance. There's no reason the "package manager" could not >> spawn a separate Emacs in batch-mode as a sub-job to do the compilation. > > Very lightly tested version:
This uses the Emacs executable on the exec path, which might not be the correct one. I'm wary of making such a fundamental change to package.el without first exploring possible package-specific work-arounds. Could problematic packages use an eval-when-compile form to forcibly load the correct version of the required file?