{"action":"closed","issue":{"url":"https://api.github.com/repos/conda/conda/issues/1529","repository_url":"https://api.github.com/repos/conda/conda","labels_url":"https://api.github.com/repos/conda/conda/issues/1529/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/1529/comments","events_url":"https://api.github.com/repos/conda/conda/issues/1529/events","html_url":"https://github.com/conda/conda/issues/1529","id":100964062,"number":1529,"title":"h5py >=2.4.0 not detected by pip/setuptools","user":{"login":"ikalev","id":3067425,"avatar_url":"https://avatars.githubusercontent.com/u/3067425?v=3","gravatar_id":"","url":"https://api.github.com/users/ikalev","html_url":"https://github.com/ikalev","followers_url":"https://api.github.com/users/ikalev/followers","following_url":"https://api.github.com/users/ikalev/following{/other_user}","gists_url":"https://api.github.com/users/ikalev/gists{/gist_id}","starred_url":"https://api.github.com/users/ikalev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikalev/subscriptions","organizations_url":"https://api.github.com/users/ikalev/orgs","repos_url":"https://api.github.com/users/ikalev/repos","events_url":"https://api.github.com/users/ikalev/events{/privacy}","received_events_url":"https://api.github.com/users/ikalev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2015-08-14T08:43:33Z","updated_at":"2016-07-07T09:45:00Z","closed_at":"2016-07-07T09:45:00Z","body":"I'm trying to build a conda package which depends on ``h5py``. Here's a fragment from my ``meta.yaml`` recipe:\r\n\r\n```\r\nbuild:\r\n  binary_relocation: true\r\n  number: 0\r\n  script: python setup.py install\r\npackage:\r\n  name: xyz\r\n  version: 0.2.1\r\nrequirements:\r\n  build:\r\n  - h5py \r\n  - python\r\n  run:\r\n  - h5py \r\n  - python\r\nsource:\r\n  path: C:\\source\r\ntest:\r\n  requires: []\r\n```\r\n\r\nWhen I try to build this package, setuptools does not detect that ``h5py`` is already installed in the build environment and the build fails:\r\n\r\n```\r\nc:\\> conda build c:\\recipe\r\n...\r\nProcessing dependencies for xyz==0.2.1\r\nSearching for h5py\r\n\r\nRuntimeError: Setuptools downloading is disabled in conda build. Be sure to add all dependencies in the meta.yaml  url=https://pypi.python.o\r\nrg/simple/h5py/r\r\n```\r\n\r\nIt works fine if I change the requirement to ``h5py <=2.3``. But since version 2.4 h5py can't be detected by pip or setuptools:\r\n\r\n```\r\nC:\\>conda create -n bug pip\r\nC:\\>activate bug\r\n\r\n[bug] C:\\>conda install h5py=2.3\r\n[bug] C:\\>pip install h5py\r\nRequirement already satisfied (use --upgrade to upgrade): h5py in c:\\anaconda\\envs\\bug\\lib\\site-packages\r\n\r\n[bug] C:\\>conda install h5py=2.4\r\n[bug] C:\\>pip install h5py\r\nCollecting h5py\r\n  Using cached h5py-2.5.0.tar.gz\r\n```\r\n\r\nThis might be the case because ``conda install h5py=2.3`` installs ``h5py-2.3.1-py2.7.egg-info`` in ``site-packages``, but this directory is missing if you install ``h5py >=2.4``."}}
{"actor":{"display_login":"ikalev"}}