{"action":"closed","issue":{"url":"https://api.github.com/repos/conda/conda-build/issues/2919","repository_url":"https://api.github.com/repos/conda/conda-build","labels_url":"https://api.github.com/repos/conda/conda-build/issues/2919/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda-build/issues/2919/comments","events_url":"https://api.github.com/repos/conda/conda-build/issues/2919/events","html_url":"https://github.com/conda/conda-build/issues/2919","id":326296634,"number":2919,"title":"py preprocessing selector is an int, not a string as noted in the docs","user":{"login":"nelson-liu","id":7272031,"avatar_url":"https://avatars3.githubusercontent.com/u/7272031?v=4","gravatar_id":"","url":"https://api.github.com/users/nelson-liu","html_url":"https://github.com/nelson-liu","followers_url":"https://api.github.com/users/nelson-liu/followers","following_url":"https://api.github.com/users/nelson-liu/following{/other_user}","gists_url":"https://api.github.com/users/nelson-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/nelson-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelson-liu/subscriptions","organizations_url":"https://api.github.com/users/nelson-liu/orgs","repos_url":"https://api.github.com/users/nelson-liu/repos","events_url":"https://api.github.com/users/nelson-liu/events{/privacy}","received_events_url":"https://api.github.com/users/nelson-liu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-24T21:11:35Z","updated_at":"2018-05-25T00:19:10Z","closed_at":"2018-05-25T00:19:10Z","author_association":"NONE","body":"Context from https://github.com/conda-forge/staged-recipes/pull/5940\r\n\r\n### Actual Behavior\r\n\r\nThe `py` variable in the preprocessing selector is an int, but [the docs](https://conda.io/docs/user-guide/tasks/build-packages/define-metadata.html#preprocessing-selectors) indicate that it is a string.\r\n\r\nWhat actually happens if i use the selector `# [win or py>='36']`:\r\n\r\n```\r\nError: Invalid selector in meta.yaml line 19:\r\noffending line:\r\n  skip: True  # [win or py>='36']\r\nexception:\r\n'>=' not supported between instances of 'int' and 'str'\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\nAdd `skip: True  # [win or py>='36']` to a conda recipe and try building it.\r\n\r\n##### `Output of conda info`\r\n<!-- Between the ticks below, paste the output of 'conda info' -->\r\n```\r\n$ conda info\r\n\r\n     active environment : conda_forge\r\n    active env location : /home/nfliu/miniconda3/envs/conda_forge\r\n            shell level : 1\r\n       user config file : /home/nfliu/.condarc\r\n populated config files : /home/nfliu/.condarc\r\n          conda version : 4.5.1\r\n    conda-build version : not installed\r\n         python version : 3.6.1.final.0\r\n       base environment : /home/nfliu/miniconda3  (writable)\r\n           channel URLs : https://conda.anaconda.org/conda-forge/linux-64\r\n                          https://conda.anaconda.org/conda-forge/noarch\r\n                          https://repo.anaconda.com/pkgs/main/linux-64\r\n                          https://repo.anaconda.com/pkgs/main/noarch\r\n                          https://repo.anaconda.com/pkgs/free/linux-64\r\n                          https://repo.anaconda.com/pkgs/free/noarch\r\n                          https://repo.anaconda.com/pkgs/r/linux-64\r\n                          https://repo.anaconda.com/pkgs/r/noarch\r\n                          https://repo.anaconda.com/pkgs/pro/linux-64\r\n                          https://repo.anaconda.com/pkgs/pro/noarch\r\n          package cache : /home/nfliu/miniconda3/pkgs\r\n                          /home/nfliu/.conda/pkgs\r\n       envs directories : /home/nfliu/miniconda3/envs\r\n                          /home/nfliu/.conda/envs\r\n               platform : linux-64\r\n             user-agent : conda/4.5.1 requests/2.14.2 CPython/3.6.1 Linux/4.13.0-41-generic ubuntu/16.04 glibc/2.23\r\n                UID:GID : 1000:1000\r\n             netrc file : None\r\n           offline mode : False\r\n```\r\n\r\ncc @scopatz "}}
{"actor":{"display_login":"nelson-liu"}}