{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/2523","labels_url":"https://api.github.com/repos/pypa/pip/issues/2523/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/2523/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/2523/events","html_url":"https://github.com/pypa/pip/issues/2523","id":60747198,"number":2523,"title":"Tests don't find `bzr` on Windows","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-11T23:27:04Z","updated_at":"2015-03-12T10:58:08Z","closed_at":null,"body":"I am not sure yet if this was broken before or was introduced by https://github.com/pypa/pip/commit/80106081de565d20610b14fbdad2fbf333edb49d, but the tests fail to find `bzr` on Windows, even though I installed it and can run it from the command prompt.\r\n\r\n```\r\n(pip) C:\\Users\\Administrator\\Development\\Python\\pip>tox -e py27 -- tests/functional/test_freeze.py -k test_freeze_bazaar_clone --tb=short\r\nGLOB sdist-make: C:\\Users\\Administrator\\Development\\Python\\pip\\setup.py\r\npy27 inst-nodeps: C:\\Users\\Administrator\\Development\\Python\\pip\\.tox\\dist\\pip-6.1.0.dev0.zip\r\npy27 runtests: PYTHONHASHSEED='762'\r\npy27 runtests: commands[0] | py.test --timeout 300 tests\\functional\\test_freeze.py -k test_freeze_bazaar_clone --tb=short\r\n============================= test session starts =============================\r\nplatform win32 -- Python 2.7.5 -- py-1.4.26 -- pytest-2.6.4\r\nplugins: capturelog, cov, timeout, xdist\r\ncollected 8 items\r\n\r\ntests/functional/test_freeze.py F\r\n\r\n================================== FAILURES ===================================\r\n__________________________ test_freeze_bazaar_clone ___________________________\r\ntests\\functional\\test_freeze.py:231: in test_freeze_bazaar_clone\r\n    tmpdir.join(\"cache\"),\r\ntests\\lib\\local_repos.py:82: in local_checkout\r\n    return _get_vcs_and_checkout_url(remote_repo, directory)\r\ntests\\lib\\local_repos.py:68: in _get_vcs_and_checkout_url\r\n    vcs_class(remote_repository).obtain(destination_path)\r\npip\\vcs\\bazaar.py:75: in obtain\r\n    self.run_command(['branch', '-q'] + rev_options + [url, dest])\r\npip\\vcs\\__init__.py:318: in run_command\r\n    raise BadCommand('Cannot find command %r' % self.name)\r\nE   BadCommand: Cannot find command 'bzr'\r\n-------------------------------- Captured log ---------------------------------\r\nbazaar.py                   73 INFO     Checking out http://bazaar.launchpad.net/%7Edjango-wikiapp/django-wikiapp/release-0.1 to c:\\\r\nusers\\admini~1\\appdata\\local\\temp\\pytest-10\\test_freeze_bazaar_clone0\\cache\\release-0.1\r\n__init__.py                677 DEBUG    Running command bzr branch -q http://bazaar.launchpad.net/%7Edjango-wikiapp/django-wikiapp/r\r\nelease-0.1 c:\\users\\admini~1\\appdata\\local\\temp\\pytest-10\\test_freeze_bazaar_clone0\\cache\\release-0.1\r\n__init__.py                687 CRITICAL Error [Error 2] The system cannot find the file specified while executing command bzr branch\r\n -q http://bazaar.launchpad.net/%7Edjango-wikiapp/django-wikiapp/release-0.1 c:\\users\\admini~1\\appdata\\local\\temp\\pytest-10\\test_fre\r\neze_bazaar_clone0\\cache\\release-0.1\r\n============= 7 tests deselected by '-ktest_freeze_bazaar_clone' ==============\r\n=================== 1 failed, 7 deselected in 8.65 seconds ====================\r\nERROR: InvocationError: 'C:\\\\Users\\\\Administrator\\\\Development\\\\Python\\\\pip\\\\.tox\\\\py27\\\\Scripts\\\\py.test.EXE --timeout 300 tests\\\\f\r\nunctional\\\\test_freeze.py -k test_freeze_bazaar_clone --tb=short'\r\n____________________________________________________________ summary _____________________________________________________________\r\nERROR:   py27: commands failed\r\n\r\n(pip) C:\\Users\\Administrator\\Development\\Python\\pip>bzr\r\nBazaar 2.5.1 -- a free distributed version-control tool\r\nhttp://bazaar.canonical.com/\r\n\r\nBasic commands:\r\n  bzr init           makes this directory a versioned branch\r\n  bzr branch         make a copy of another branch\r\n\r\n  bzr add            make files or directories versioned\r\n  bzr ignore         ignore a file or pattern\r\n  bzr mv             move or rename a versioned file\r\n...\r\n```\r\n\r\nCc: @pfmoore \r\n\r\nPart of the larger effort of getting the tests to work well on Windows (https://github.com/pypa/pip/issues/2520)"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/78459444","html_url":"https://github.com/pypa/pip/issues/2523#issuecomment-78459444","issue_url":"https://api.github.com/repos/pypa/pip/issues/2523","id":78459444,"user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T10:58:08Z","updated_at":"2015-03-12T10:58:08Z","body":"We can ask @jezdez what the motivation was for `find_command`, but I wouldn't be surprised if he doesn't remember, since it was back in 2009:\r\n\r\nhttps://github.com/pypa/pip/commit/5b49777b83e411d937b87b287a57d7fc6adf7607#diff-abb7fb849a00297ea347b89aa9fa79acR4130"}}