Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30265

Abstract enabling virtualenv in etc/evergreen.yml

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.12
    • None
    • Testing Infrastructure
    • None
    • Fully Compatible
    • TIG 2017-08-21

    Description

      Abstract, similar to ${set_sudo} as follows:

      In pre step, command: expansions.update

             - key: activate_virtualenv
               value: |
                # check if virtualenv is set up
                if [ -d "venv" ]; then
                  if [ "Windows_NT" = "$OS" ]; then
                    . ./venv/Scripts/activate
                  else
                    . ./venv/bin/activate
                  fi
                fi
      

      Invoke as ${activate_virtualenv}

      Attachments

        Activity

          People

            jonathan.abrahams Jonathan Abrahams
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: