-
Notifications
You must be signed in to change notification settings - Fork 71
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
Python Module Check #215
base: master
Are you sure you want to change the base?
Python Module Check #215
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not work at least on Windows.
https://ci.appveyor.com/project/DiligentGraphics/diligenttools/build/job/ukjj79yvuwq4kht4
My bad. Forgot how to read. Should be correct now. |
|
||
execute_process(COMMAND ${LIBCLANG_INSTALL_CMD} | ||
if(NOT LIBCLANG_EXISTS EQUAL "0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition may be too liberal as there are multiple other options for false value in CMake.
https://cmake.org/cmake/help/latest/command/if.html#constant
It should just be if(NOT LIBCLANG_EXISTS)
RESULT_VARIABLE JINJA_EXISTS | ||
) | ||
|
||
if(NOT JINJA_EXISTS EQUAL "0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Checks to see if the
libclang
andjinja2
modules are available to the python interpreter before attempting to install using pip. This allows a user on a system that does not manage python dependencies with pip to manually pre-install these dependencies before building.Solves #214