The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

28 lines
882 B

4 weeks ago
  1. # Find Python and Virtualenv. We don't actually use the output of the
  2. # find_package, but it'll give nicer errors.
  3. find_package(PythonInterp 3 REQUIRED)
  4. find_program(VIRTUALENV virtualenv)
  5. if(NOT VIRTUALENV)
  6. message(FATAL_ERROR "Could not find `virtualenv` in PATH")
  7. endif()
  8. ExternalProject_Add(
  9. pycarl
  10. GIT_REPOSITORY https://github.com/moves-rwth/pycarl.git
  11. BUILD_IN_SOURCE YES
  12. CONFIGURE_COMMAND ${VIRTUALENV} -p python3 pycarl-venv
  13. BUILD_COMMAND ./pycarl-venv/bin/python setup.py build_ext --carl-dir ${CMAKE_BINARY_DIR} -j 1 develop
  14. INSTALL_COMMAND ""
  15. TEST_COMMAND ./pycarl-venv/bin/pip install pytest
  16. )
  17. ExternalProject_Get_Property(pycarl SOURCE_DIR)
  18. add_dependencies(pycarl lib_carl carl-parser)
  19. add_dependencies(addons pycarl)
  20. add_test(NAME pycarl
  21. COMMAND ./pycarl-venv/bin/python -m pytest tests
  22. WORKING_DIRECTORY ${SOURCE_DIR}
  23. )