{"action":"created","issue":{"url":"https://api.github.com/repos/pantsbuild/pex/issues/270","repository_url":"https://api.github.com/repos/pantsbuild/pex","labels_url":"https://api.github.com/repos/pantsbuild/pex/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/pantsbuild/pex/issues/270/comments","events_url":"https://api.github.com/repos/pantsbuild/pex/issues/270/events","html_url":"https://github.com/pantsbuild/pex/issues/270","id":156942904,"number":270,"title":"pex does not resolve packages using -i switch when using pypi-server","user":{"login":"petmakris","id":5685156,"avatar_url":"https://avatars.githubusercontent.com/u/5685156?v=3","gravatar_id":"","url":"https://api.github.com/users/petmakris","html_url":"https://github.com/petmakris","followers_url":"https://api.github.com/users/petmakris/followers","following_url":"https://api.github.com/users/petmakris/following{/other_user}","gists_url":"https://api.github.com/users/petmakris/gists{/gist_id}","starred_url":"https://api.github.com/users/petmakris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petmakris/subscriptions","organizations_url":"https://api.github.com/users/petmakris/orgs","repos_url":"https://api.github.com/users/petmakris/repos","events_url":"https://api.github.com/users/petmakris/events{/privacy}","received_events_url":"https://api.github.com/users/petmakris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-26T09:35:05Z","updated_at":"2016-06-01T07:09:19Z","closed_at":null,"body":"When using as ~/.pip/pip.conf\r\n```\r\n[global]\r\nindex-url = http://localhost:8080/simple\r\n```\r\n\r\npip resolves packages correctly.\r\nIf using the -i switch to declare this particular index with pex the following happens:\r\n\r\n```\r\nTraceback (most recent call last):tributions :: Packaging acet-tracing-steward\r\n  File \"/opt/python/bin/pex\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/opt/python/lib/python2.6/site-packages/pex/bin/pex.py\", line 540, in main\r\n    pex_builder = build_pex(reqs, options, resolver_options_builder)\r\n  File \"/opt/python/lib/python2.6/site-packages/pex/bin/pex.py\", line 489, in build_pex\r\n    resolveds = resolver.resolve(resolvables)\r\n  File \"/opt/python/lib/python2.6/site-packages/pex/resolver.py\", line 200, in resolve\r\n    dist = self.build(package, resolvable.options)\r\n  File \"/opt/python/lib/python2.6/site-packages/pex/resolver.py\", line 253, in build\r\n    package = Package.from_href(options.get_context().fetch(package, into=self.__cache))\r\n  File \"/opt/python/lib/python2.6/site-packages/pex/http.py\", line 111, in fetch\r\n    shutil.copyfileobj(in_fp, out_fp)\r\n  File \"/opt/python/lib/python2.6/shutil.py\", line 28, in copyfileobj\r\n    buf = fsrc.read(length)\r\n  File \"/opt/python/lib/python2.6/site-packages/pex/http.py\", line 169, in read\r\n    self._validate()\r\n  File \"/opt/python/lib/python2.6/site-packages/pex/http.py\", line 179, in _validate\r\n    raise Context.Error('%s failed checksum!' % (self._link.url))\r\npex.http.Error: http://localhost:8080/packages/f0/07/26b519e6ebb03c2a74989f7571e6ae6b82e9d7d81b8de6fcdbfc643c7b58/simplejson-3.8.2.tar.gz#md5=53b1371bbf883b129a12d594a97e9a18 failed checksum!\r\n\r\n```\r\n\r\nAt this point the contents of ~/.pex/build will be\r\n```\r\n-rw-r--r--. 1 pmakris pmakris    0 May 26 11:33 simplejson-3.8.2.tar.gz.a9fa70be-c37b-4010-bb5b-c15aec8cb638\r\n```\r\n\r\nThis works fine with artifactory as a pypi server.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pantsbuild/pex/issues/comments/222911075","html_url":"https://github.com/pantsbuild/pex/issues/270#issuecomment-222911075","issue_url":"https://api.github.com/repos/pantsbuild/pex/issues/270","id":222911075,"user":{"login":"petmakris","id":5685156,"avatar_url":"https://avatars.githubusercontent.com/u/5685156?v=3","gravatar_id":"","url":"https://api.github.com/users/petmakris","html_url":"https://github.com/petmakris","followers_url":"https://api.github.com/users/petmakris/followers","following_url":"https://api.github.com/users/petmakris/following{/other_user}","gists_url":"https://api.github.com/users/petmakris/gists{/gist_id}","starred_url":"https://api.github.com/users/petmakris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petmakris/subscriptions","organizations_url":"https://api.github.com/users/petmakris/orgs","repos_url":"https://api.github.com/users/petmakris/repos","events_url":"https://api.github.com/users/petmakris/events{/privacy}","received_events_url":"https://api.github.com/users/petmakris/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T07:09:19Z","updated_at":"2016-06-01T07:09:19Z","body":"Just for people that read this thread, you may work with pex and private repos by using pip for package resolving then load wheel dependencies from local cache\r\n\r\n```\r\npip wheel -w wheel_dir ...\r\npex --disable-cache  -f wheel_dir --no-index ...\r\n\r\n```\r\n\r\n"}}
{"actor":{"display_login":"petmakris"}}