{"action":"opened","issue":{"url":"https://api.github.com/repos/habitat-sh/core-plans/issues/338","repository_url":"https://api.github.com/repos/habitat-sh/core-plans","labels_url":"https://api.github.com/repos/habitat-sh/core-plans/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/habitat-sh/core-plans/issues/338/comments","events_url":"https://api.github.com/repos/habitat-sh/core-plans/issues/338/events","html_url":"https://github.com/habitat-sh/core-plans/issues/338","id":195357634,"number":338,"title":"[python2] `pip` may not be using or honoring CA certs","user":{"login":"fnichol","id":261548,"avatar_url":"https://avatars.githubusercontent.com/u/261548?v=3","gravatar_id":"","url":"https://api.github.com/users/fnichol","html_url":"https://github.com/fnichol","followers_url":"https://api.github.com/users/fnichol/followers","following_url":"https://api.github.com/users/fnichol/following{/other_user}","gists_url":"https://api.github.com/users/fnichol/gists{/gist_id}","starred_url":"https://api.github.com/users/fnichol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnichol/subscriptions","organizations_url":"https://api.github.com/users/fnichol/orgs","repos_url":"https://api.github.com/users/fnichol/repos","events_url":"https://api.github.com/users/fnichol/events{/privacy}","received_events_url":"https://api.github.com/users/fnichol/received_events","type":"User","site_admin":false},"labels":[{"id":287889748,"url":"https://api.github.com/repos/habitat-sh/core-plans/labels/Bug","name":"Bug","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-13T20:20:07Z","updated_at":"2016-12-13T20:20:07Z","closed_at":null,"body":"Copying original issue comment from @bixu in habitat-sh/habitat#945\r\n\r\n---\r\n\r\nFor example:\r\n\r\n```\r\n    Download error on https://pypi.python.org/simple/numpy/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.\r\nc:590) -- Some packages may not be found!\r\n    Couldn't find index page for 'numpy' (maybe misspelled?)\r\n    Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)\r\n -- Some packages may not be found!\r\n    No local packages or download links found for numpy>=1.6\r\n    Traceback (most recent call last):\r\n      File \"<string>\", line 1, in <module>\r\n\r\n      File \"/tmp/pip-build-j0adA9/numexpr/setup.py\", line 219, in <module>\r\n        setup_package()\r\n      File \"/tmp/pip-build-j0adA9/numexpr/setup.py\", line 215, in setup_package\r\n        setup(**metadata)\r\n      File \"/hab/pkgs/core/python2/2.7.11/20160620182552/lib/python2.7/distutils/core.py\", line 111, in setup\r\n        _setup_distribution = dist = klass(attrs)\r\n      File \"/hab/pkgs/core/python2/2.7.11/20160620182552/lib/python2.7/site-packages/setuptools/dist.py\", line 268, in __init_\r\n_\r\n        self.fetch_build_eggs(attrs['setup_requires'])\r\n      File \"/hab/pkgs/core/python2/2.7.11/20160620182552/lib/python2.7/site-packages/setuptools/dist.py\", line 313, in fetch_b\r\nuild_eggs\r\n        replace_conflicting=True,\r\n      File \"/hab/pkgs/core/python2/2.7.11/20160620182552/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 836, in\r\nresolve\r\n        dist = best[req.key] = env.best_match(req, ws, installer)\r\n      File \"/hab/pkgs/core/python2/2.7.11/20160620182552/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1081, in\r\n best_match\r\n        return self.obtain(req, installer)\r\n      File \"/hab/pkgs/core/python2/2.7.11/20160620182552/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1093, in\r\n obtain\r\n        return installer(requirement)\r\n      File \"/hab/pkgs/core/python2/2.7.11/20160620182552/lib/python2.7/site-packages/setuptools/dist.py\", line 380, in fetch_b\r\nuild_egg\r\n        return cmd.easy_install(req)\r\n      File \"/hab/pkgs/core/python2/2.7.11/20160620182552/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line\r\n 623, in easy_install\r\n        raise DistutilsError(msg)\r\n    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('numpy>=1.6')\r\n```\r\n\r\nRelevant `plan.sh` lines (this is a build plan embedded at `private_repo/habitat/plan.sh`):\r\n\r\n```\r\npkg_deps=(core/glibc core/gcc core/python2)\r\npkg_build_deps=(core/gcc core/make core/python2 core/git)\r\npkg_bin_dirs=(bin)\r\npkg_lib_dirs=(lib)\r\npkg_include_dirs=(include)\r\n\r\ndo_download(){\r\n  return 0\r\n}\r\n\r\ndo_verify(){\r\n  return 0\r\n}\r\n\r\ndo_unpack(){\r\n  return 0\r\n}\r\n\r\ndo_build(){\r\n  pushd /src > /dev/null\r\n  pwd\r\n  pip install --upgrade pip\r\n  pip install --install-option=\"--prefix=${pkg_prefix}\" $(grep numpy requirements.txt)\r\n  pip install --install-option=\"--prefix=${pkg_prefix}\" $(grep numexpr requirements.txt)\r\n  pip install --install-option=\"--prefix=${pkg_prefix}\" $(grep Cython requirements.txt)\r\n  pip install --install-option=\"--prefix=${pkg_prefix}\" -r requirements.txt\r\n  popd > /dev/null\r\n}\r\n\r\ndo_install(){\r\n  pushd $PLAN_CONTEXT > /dev/null\r\n  pip install -e .\r\n  popd > /dev/null\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"fnichol"}}