Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to add external (non-elpa) dependencies? #2538

Closed
cpitclaudel opened this issue Feb 26, 2015 · 2 comments
Closed

Is there a way to add external (non-elpa) dependencies? #2538

cpitclaudel opened this issue Feb 26, 2015 · 2 comments

Comments

@cpitclaudel
Copy link
Contributor

I'm writing a company-mode backend for Coq proof scripts. This requires ProofGeneral, a major mode for Emacs that is not currently distributed on melpa (in fact, their repo uses CVS).

I've created the relevant recipe, and it works perfectly when Proof General is available, but it fails if it is not. Is there a way to specify that dependency. Or should I make it so that my package installs successfully in all cases, but if proof-general fails to load then I show an error message when one tries to actually use my package?

Thanks.

@purcell
Copy link
Member

purcell commented Feb 26, 2015

MELPA supports CVS, so Proof General could potentially be added. I haven't looked, but it may require minor changes in order to be suitable for packaging.

Otherwise, the best solution (while not perfect) is to not declare a package dependency, and (require ...) Proof General in your code, so that it results in a load-time error for the user.

Hope that helps!

@purcell purcell closed this as completed Feb 26, 2015
@cpitclaudel
Copy link
Contributor Author

Thanks! Adding proof-general could be a nice idea. I was concerned about (require ...) raising an error at compilation time, forcing user to uninstall/reinstall the package. I'll wrap the relevant require in a check, and issue an error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants