Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3925

Impala python should use a single virtualenv instead of separate scripts

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 2.6.0
    • None
    • Infrastructure

    Description

      There are 2 python environments accessible from the dev/test environment: the system python and a virtualenv python (in infra/python/). Python's virtualenv provides a nice way to set up a bash environment to use a specific virtual environment (virtualenv), but we have scripts that wrap python and py.test in the infra virtualenv: impala-python and impala-py.test. The latter seems to be the right python to use for almost all things, so it's not clear why we maintain these scripts rather than setting up the environment properly in impala-config.sh. We should see if we can just set up whatever is necessary in impala-config.sh (or something else that is run to set up a dev/test environment), and then rely on the right python being called.

      See virtualenv docs and guide:
      https://pypi.python.org/pypi/virtualenv
      http://docs.python-guide.org/en/latest/dev/virtualenvs/

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mjacobs Matthew Jacobs

            Dates

              Created:
              Updated:

              Slack

                Issue deployment