[
https://issues.apache.org/jira/browse/MESOS-7255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15934800#comment-15934800
]
Kevin Klues commented on MESOS-7255:
------------------------------------
{noformat}
commit 05e9a1d40572b8383a582e15663d861b134a7dad
Author: Kevin Klues <[email protected]>
Date: Tue Mar 21 06:14:30 2017 -0700
Added `virtualenv` as a dependency in `getting-started.md`.
Review: https://reviews.apache.org/r/57713/
{noformat}
> New mesos-style.py linter behavior breaks commiting when virtualenv is not
> installed
> ------------------------------------------------------------------------------------
>
> Key: MESOS-7255
> URL: https://issues.apache.org/jira/browse/MESOS-7255
> Project: Mesos
> Issue Type: Bug
> Environment: macOS Sierra 10.12.3, default python 2.7.10
> Reporter: Jan Schlicht
> Fix For: 1.3.0
>
>
> Though {{mesos-style.py}} already had a function that checks and builds a
> virtualenv, it always seemed to work when {{virtualenv}} was not installed
> for the used python environment. The latest change breaks this behavior,
> linting fails with:
> {noformat}
> $ ./support/mesos-style.py src/slave/slave.hpp
> Checking 1 C++ file
> Total errors found: 0
> Virtualenv for python linter not detected ... building
> Traceback (most recent call last):
> File "/usr/local/bin/virtualenv", line 7, in <module>
> from virtualenv import main
> ImportError: No module named virtualenv
> /Users/nfnt/Documents/mesos/src/cli_new/bootstrap: line 64:
> /Users/nfnt/Documents/mesos/src/cli_new/.virtualenv/bin/activate: No such
> file or directory
> {noformat}
> As this is a commit hook, a {{git commit}} is no longer possible (when not
> using {{--no-verify}}).
> The default python 2.7 environment installed on macOS doesn't provide neither
> {{pip}} nor {{virtualenv}}, i.e. {{virtualenv}} needs to be installed
> manually, as documented in https://virtualenv.pypa.io/en/stable/installation/
> to resolve this.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)