$ easy_install -U mock
Searching for mock
Reading https://pypi.python.org/simple/mock/
Best match: mock 2.0.0
Downloading https://pypi.python.org/packages/0c/53/014354fc93c591ccc4abff12c473ad565a2eb24dcd82490fae33dbf2539f/mock-2.0.0.tar.gz#md5=0febfafd14330c9dcaa40de2d82d40ad
Processing mock-2.0.0.tar.gz
Writing /var/folders/8t/_x8d0qg539z7ynrmr31xdpm00000gn/T/easy_install-mswJxc/mock-2.0.0/setup.cfg
Running mock-2.0.0/setup.py -q bdist_egg --dist-dir /var/folders/8t/_x8d0qg539z7ynrmr31xdpm00000gn/T/easy_install-mswJxc/mock-2.0.0/egg-dist-tmp-b2vJHn
Installed /private/var/folders/8t/_x8d0qg539z7ynrmr31xdpm00000gn/T/easy_install-mswJxc/mock-2.0.0/.eggs/pbr-1.10.0-py2.7.egg
Marker evaluation failed, see the following error. For more information see: http://docs.openstack.org/developer/pbr/compatibility.html#evaluate-marker
ERROR:root:Error parsing
Traceback (most recent call last):
File "/private/var/folders/8t/_x8d0qg539z7ynrmr31xdpm00000gn/T/easy_install-mswJxc/mock-2.0.0/.eggs/pbr-1.10.0-py2.7.egg/pbr/core.py", line 111, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "/private/var/folders/8t/_x8d0qg539z7ynrmr31xdpm00000gn/T/easy_install-mswJxc/mock-2.0.0/.eggs/pbr-1.10.0-py2.7.egg/pbr/util.py", line 248, in cfg_to_args
kwargs = setup_cfg_to_setup_kwargs(config, script_args)
File "/private/var/folders/8t/_x8d0qg539z7ynrmr31xdpm00000gn/T/easy_install-mswJxc/mock-2.0.0/.eggs/pbr-1.10.0-py2.7.egg/pbr/util.py", line 431, in setup_cfg_to_setup_kwargs
if pkg_resources.evaluate_marker('(%s)' % env_marker):
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 1503, in evaluate_marker
return cls.interpret(parser.expr(text).totuple(1)[1])
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 1537, in interpret
return op(nodelist)
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 1451, in atom
return cls.interpret(nodelist[2])
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 1537, in interpret
return op(nodelist)
File "build/bdist.macosx-10.10-x86_64/egg/pkg_resources/__init__.py", line 1472, in comparison
raise SyntaxError(msg)
SyntaxError: '<' operator not allowed in environment markers
error: Setup script exited with error in setup command: Error parsing /private/var/folders/8t/_x8d0qg539z7ynrmr31xdpm00000gn/T/easy_install-mswJxc/mock-2.0.0/setup.cfg: SyntaxError: '<' operator not allowed in environment markers
The fix is to upgrade setuptools
Run the following before installing mock
# easy_install -U setuptools