Skip to content
Snippets Groups Projects

Configure time virtualenv setup

Merged Dominic Kempf requested to merge feature/dune-python-migration-virtualenv into master
1 unresolved thread

This is the followup MR promised in !219 (merged) that implements setup of a virtualenv at configure time, if the user has explicitly granted permission to do so. Naturally, this one builds upon !219 (merged), so it might be a bit hard to spot the changes.

Merge request reports

Pipeline #2008 passed

Pipeline passed for 7f503237 on feature/dune-python-migration-virtualenv

Approval is optional

Merged by avatar (Apr 14, 2025 8:27pm UTC)

Merge details

  • Changes merged into with 418a0e35.
  • Deleted the source branch.
  • Auto-merge enabled

Pipeline #2247 passed

Pipeline passed for 418a0e35 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 #!@BASH@
  • Is hardcoding a shebang line here common practice? I would've expected either /bin/bash or the portable version /usr/bin/env bash instead.

    Edited by Elias Pipping
  • BASH is here substituted with the bash found by find_package(UnixCommands). I considered that clean, I have no idea of what is considered common practice, though.

  • #!/bin/sh should work when . is used instead of source. At least I understand the comment about using the "original Bourne shell" in the documentation for activate as it not needing bash specifically.

    Please also use "$@" (with quotes) so arguments with whitespace are correctly forwarded.

  • Thanks Ansgar. If you have a strong suggestion for the shebang, I will happily follow that.

  • Please register or sign in to reply
  • Dominic Kempf added 1 commit

    added 1 commit

    • 7f503237 - [bugfix] Quote $@ to preserve whitespace in arguments

    Compare with previous version

  • This is available for about a month now, I will merge at the end of the week if nobody objects.

  • Felix Gruber mentioned in merge request !219 (merged)

    mentioned in merge request !219 (merged)

  • merged

  • Dominic Kempf mentioned in commit 418a0e35

    mentioned in commit 418a0e35

  • Dominic Kempf mentioned in commit 9d0debba

    mentioned in commit 9d0debba

  • Please register or sign in to reply
    Loading