Skip to content

Commit

Permalink
Fix build by putting liccheck in its own environment
Browse files Browse the repository at this point in the history
  • Loading branch information
olsen232 committed Jul 18, 2023
1 parent 6ec4b30 commit b326c00
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions requirements/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include(PyCreateVirtualEnvironment)

createvirtualenvironment(requirementsEnv REQUIREMENTS "pip-tools" "liccheck")
createvirtualenvironment(requirementsEnv REQUIREMENTS "pip-tools")
createvirtualenvironment(liccheckEnv REQUIREMENTS "liccheck")

set(REQUIREMENTS_FILES requirements.txt test.txt docs.txt dev.txt)
set(REQUIREMENTS_DEPS "" requirements.txt test.txt docs.txt)
Expand Down Expand Up @@ -77,9 +78,9 @@ add_custom_target(

add_custom_target(
py-license-check
DEPENDS requirementsEnv py-dependencies
DEPENDS liccheckEnv py-dependencies
COMMAND
${CMAKE_COMMAND} -E env PYTHONPATH=${requirementsEnv_PURELIB_DIR} -- ${VENV_PY} -m liccheck -l
${CMAKE_COMMAND} -E env PYTHONPATH=${liccheckEnv_PURELIB_DIR} -- ${VENV_PY} -m liccheck -l
CAUTIOUS -s ${CMAKE_CURRENT_SOURCE_DIR}/licenses.ini -r
${CMAKE_CURRENT_SOURCE_DIR}/requirements.txt --no-deps -R liccheck-report.txt
VERBATIM
Expand Down

0 comments on commit b326c00

Please sign in to comment.