Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
98698dfc
Commit
98698dfc
authored
2 years ago
by
Timo Koch
Committed by
Robert K
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Improve warning when Python bindings are disabled because of missing venv.
parent
03c8c7d4
No related branches found
No related tags found
1 merge request
!1222
[feature][Python] Make use of venv optional. Default is ON.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/modules/DunePythonVirtualenv.cmake
+7
-3
7 additions, 3 deletions
cmake/modules/DunePythonVirtualenv.cmake
with
7 additions
and
3 deletions
cmake/modules/DunePythonVirtualenv.cmake
+
7
−
3
View file @
98698dfc
...
...
@@ -156,10 +156,14 @@ if(NOT IS_DIRECTORY "${DUNE_PYTHON_VIRTUALENV_PATH}")
dune_python_find_package
(
PACKAGE virtualenv
)
dune_python_find_package
(
PACKAGE venv
)
if
(
NOT
(
DUNE_PYTHON_virtualenv_FOUND OR DUNE_PYTHON_venv_FOUND
))
message
(
WARNING
"One of the python packages virtualenv/venv is needed on the host system! "
message
(
WARNING
"None of the Python packages virtualenv/venv was found. "
"Python bindings are therefore disabled. "
"If you are using Debian or Ubuntu, consider installing python3-venv "
"and/or python-virtualenv. Disabling use of venv for now!"
)
#set(DUNE_ENABLE_PYTHONBINDINGS OFF)
"and/or python-virtualenv. "
"If you know what you are doing, you may also choose to use "
"Python bindings without a virtual environment by configuring "
"Dune with DUNE_PYTHON_USE_VENV=FALSE."
)
set
(
DUNE_ENABLE_PYTHONBINDINGS OFF
)
set
(
DUNE_PYTHON_USE_VENV FALSE
)
# don't return, we still have to configure some files
# return()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment