{"action":"opened","issue":{"url":"https://api.github.com/repos/conda/conda-build/issues/2770","repository_url":"https://api.github.com/repos/conda/conda-build","labels_url":"https://api.github.com/repos/conda/conda-build/issues/2770/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda-build/issues/2770/comments","events_url":"https://api.github.com/repos/conda/conda-build/issues/2770/events","html_url":"https://github.com/conda/conda-build/issues/2770","id":306905841,"number":2770,"title":"conda skeleton did not produce proper meta.yaml","user":{"login":"dturaev","id":8933948,"avatar_url":"https://avatars2.githubusercontent.com/u/8933948?v=4","gravatar_id":"","url":"https://api.github.com/users/dturaev","html_url":"https://github.com/dturaev","followers_url":"https://api.github.com/users/dturaev/followers","following_url":"https://api.github.com/users/dturaev/following{/other_user}","gists_url":"https://api.github.com/users/dturaev/gists{/gist_id}","starred_url":"https://api.github.com/users/dturaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dturaev/subscriptions","organizations_url":"https://api.github.com/users/dturaev/orgs","repos_url":"https://api.github.com/users/dturaev/repos","events_url":"https://api.github.com/users/dturaev/events{/privacy}","received_events_url":"https://api.github.com/users/dturaev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-20T15:04:45Z","updated_at":"2018-03-20T15:04:45Z","closed_at":null,"author_association":"NONE","body":"Expected behavior: conda skeleton pypi package should produce meta.yaml file that can be used as input for conda build\r\n\r\nActual behavior: conda build fails because of missing dependency\r\n\r\nSteps to reproduce: I followed the guide (https://conda.io/docs/user-guide/tutorials/build-pkgs-skeleton.html) to prepare a recipe for seqmagick (https://pypi.python.org/pypi/seqmagick/0.7.0). After the skeleton command generated meta.yaml, the build command failed with a somewhat cryptic error:\r\n```\r\n...\r\nSource cache directory is: /apps/anaconda3/conda-bld/src_cache\r\nFound source in cache: seqmagick-0.7.0_e5bd29a5bf.tar.gz\r\nExtracting download\r\nsource tree in: /apps/anaconda3/conda-bld/seqmagick_1521544476937/work\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 47, in <module>\r\n    license=\"GPL V3\")\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/setuptools/__init__.py\", line 128, in setup\r\n    _install_setup_requires(attrs)\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/setuptools/__init__.py\", line 123, in _install_setup_requires\r\n    dist.fetch_build_eggs(dist.setup_requires)\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/setuptools/dist.py\", line 461, in fetch_build_eggs\r\n    replace_conflicting=True,\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 866, in resolve\r\n    replace_conflicting=replace_conflicting\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 1146, in best_match\r\n    return self.obtain(req, installer)\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/pkg_resources/__init__.py\", line 1158, in obtain\r\n    return installer(requirement)\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/setuptools/dist.py\", line 528, in fetch_build_egg\r\n    return cmd.easy_install(req)\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/setuptools/command/easy_install.py\", line 661, in easy_install\r\n    not self.always_copy, self.local_index\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/setuptools/package_index.py\", line 660, in fetch_distribution\r\n    self.find_packages(requirement)\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/setuptools/package_index.py\", line 493, in find_packages\r\n    self.scan_url(self.index_url + requirement.unsafe_name + '/')\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/setuptools/package_index.py\", line 833, in scan_url\r\n    self.process_url(url, True)\r\n  File \"/apps/anaconda3/conda-bld/seqmagick_1521544476937/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.6/site-packages/setuptools/package_index.py\", line 328, in process_url\r\n    \"Be sure to add all dependencies in the meta.yaml  url=%s\" % url)\r\nRuntimeError: Setuptools downloading is disabled in conda build. Be sure to add all dependencies in the meta.yaml  url=https://pypi.python.org/simple/nose/\r\nTraceback (most recent call last):\r\n  File \"/apps/anaconda3/bin/conda-build\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/conda_build/cli/main_build.py\", line 420, in main\r\n    execute(sys.argv[1:])\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/conda_build/cli/main_build.py\", line 411, in execute\r\n    verify=args.verify)\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/conda_build/api.py\", line 199, in build\r\n    notest=notest, need_source_download=need_source_download, variants=variants)\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/conda_build/build.py\", line 2097, in build_tree\r\n    notest=notest,\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/conda_build/build.py\", line 1370, in build\r\n    utils.check_call_env(cmd, env=env, cwd=src_dir, stats=build_stats)\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/conda_build/utils.py\", line 294, in check_call_env\r\n    return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)\r\n  File \"/apps/anaconda3/lib/python3.6/site-packages/conda_build/utils.py\", line 273, in _func_defaulting_env_to_os_environ\r\n    raise subprocess.CalledProcessError(proc.returncode, _args)\r\nsubprocess.CalledProcessError: Command '['/bin/bash', '-e', '/apps/anaconda3/conda-bld/seqmagick_1521544476937/work/conda_build.sh']' returned non-zero exit status 1.\r\n...\r\n```\r\nAfter adding \"nose\" to the meta.yaml dependencies, conda build worked. (Also the Python version wasn't specified in meta.yaml, at least py3.4 is required.)\r\nConda info:\r\n````\r\n    active environment : test\r\n    active env location : /apps/anaconda3/envs/test\r\n            shell level : 1\r\n       user config file : /root/.condarc\r\n populated config files : /apps/anaconda3/.condarc\r\n                          /root/.condarc\r\n          conda version : 4.4.11\r\n    conda-build version : 3.7.1\r\n         python version : 3.6.4.final.0\r\n       base environment : /apps/anaconda3  (writable)\r\n           channel URLs : https://repo.continuum.io/pkgs/main/linux-64\r\n                          https://repo.continuum.io/pkgs/main/noarch\r\n                          https://repo.continuum.io/pkgs/free/linux-64\r\n                          https://repo.continuum.io/pkgs/free/noarch\r\n                          https://repo.continuum.io/pkgs/r/linux-64\r\n                          https://repo.continuum.io/pkgs/r/noarch\r\n                          https://repo.continuum.io/pkgs/pro/linux-64\r\n                          https://repo.continuum.io/pkgs/pro/noarch\r\n                          https://conda.anaconda.org/conda-forge/linux-64\r\n                          https://conda.anaconda.org/conda-forge/noarch\r\n                          https://conda.anaconda.org/bioconda/linux-64\r\n                          https://conda.anaconda.org/bioconda/noarch\r\n          package cache : /apps/anaconda3/pkgs\r\n                          /root/.conda/pkgs\r\n       envs directories : /apps/anaconda3/envs\r\n                          /root/.conda/envs\r\n               platform : linux-64\r\n             user-agent : conda/4.4.11 requests/2.18.4 CPython/3.6.4 Linux/4.15.6-1.el7.elrepo.x86_64 centos/7 glibc/2.17\r\n                UID:GID : 0:0\r\n             netrc file : None\r\n           offline mode : False\r\n```\r\n"}}
{"actor":{"display_login":"dturaev"}}