-
Notifications
You must be signed in to change notification settings - Fork 28
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
Please improve the mechanism for looking for a templates.mae file #64
Comments
Hi Yuri - I've been considering removing the user templates altogether, and adding a more robust mechanism for including them in the coordgen build. Most issues reported about coordgen have to do with linking maeparser or with run-time detection of the templates file. Additionally, removing this option would allow us to validate the templates at build time. It's all to easy to add a template that is never used. Are you guys hoping for specific templates to be included? |
I encountered this issue while updating the FreeBSD port and just installed the version included in the project. |
As far as I know, that should be unnecessary, because the data from that templates file is compiled into the library. Was there some sort of error that you experienced that led you to want a templates file? |
Yes, OpenBabel-3.0 depends on coordgenlibs and in its cmake script is looking for templates.mae and failing to install find it because it was missing. |
We could absolutely install a dummy/empty templates.mae file for backwards compatibility with existing applications that have been using coordgen. The templates file is now unnecessary and unused. |
I'm just saying that the code references the .mae template in https://github.com/schrodinger/coordgenlibs/blob/master/sketcherMinimizer.cpp#L3520 that you compile into the library but don't install. People get confused, think that this file is required, and write cmake scripts to look for the file. Hence, you should remove dangling file references from the library and document how templates are handled or used. I am only an OpenBabel (and coordgenlibs) FreeBSD port maintainer and came across this issue when OpenBabel-3.0 failed to find coordgenlibs. |
Thanks Yuri, and sorry for the confusion. Let me know if there's a better place to document than here: https://github.com/schrodinger/coordgenlibs#templates I'll also add comments to the code here, and we'll work towards removing the templates file. |
Here https://github.com/schrodinger/coordgenlibs/blob/master/sketcherMinimizer.cpp#L3520 a non-existent file user_templates.mae is encoded into the library at build time.
Suggested solution:
templates.mae
into share/coordgen and default to it, otherwise allow the user to override this setting using some environment variable, ex. COORDGEN_TEMPLATESThe text was updated successfully, but these errors were encountered: