{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3889","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3889/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3889/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3889/events","html_url":"https://github.com/matplotlib/matplotlib/issues/3889","id":51014572,"number":3889,"title":"Matplotlib 1.4.2 fails to build in Python 3 (TypeError: unorderable types: str() < int())","user":{"login":"certik","id":20568,"avatar_url":"https://avatars.githubusercontent.com/u/20568?v=3","gravatar_id":"","url":"https://api.github.com/users/certik","html_url":"https://github.com/certik","followers_url":"https://api.github.com/users/certik/followers","following_url":"https://api.github.com/users/certik/following{/other_user}","gists_url":"https://api.github.com/users/certik/gists{/gist_id}","starred_url":"https://api.github.com/users/certik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/certik/subscriptions","organizations_url":"https://api.github.com/users/certik/orgs","repos_url":"https://api.github.com/users/certik/repos","events_url":"https://api.github.com/users/certik/events{/privacy}","received_events_url":"https://api.github.com/users/certik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2014-12-04T19:04:27Z","updated_at":"2015-04-16T22:13:07Z","closed_at":"2014-12-04T20:18:56Z","body":"As part of Hashdist:\r\n```\r\n[matplotlib] Building matplotlib/l6hpd5xi44vw, follow log with:\r\n[matplotlib]   tail -f /local/certik/tmp/matplotlib-l6hpd5xi44vw-1/build.log\r\n[matplotlib] running [u'/bin/bash', '_hashdist/build.sh']\r\n[matplotlib] environment:\r\n[matplotlib]   {'ARTIFACT': u'/local/certik/bld/matplotlib/l6hpd5xi44vw',\r\n[matplotlib]    'BASH': u'/bin/bash',\r\n[matplotlib]    'BUILD': u'/local/certik/tmp/matplotlib-l6hpd5xi44vw-1',\r\n[matplotlib]    u'BZIP2_DIR': u'/local/certik/bld/bzip2/yhn7t7sdxdfd',\r\n[matplotlib]    u'BZIP2_ID': u'bzip2/yhn7t7sdxdfdkhyie6hg36hqvgccj7rj',\r\n[matplotlib]    u'FREETYPE_DIR': u'/local/certik/bld/freetype/3j5vs5xri633',\r\n[matplotlib]    u'FREETYPE_ID': u'freetype/3j5vs5xri6335xcnnxh7kt3iudaos7lp',\r\n[matplotlib]    'HASHDIST_CPU_COUNT': '1',\r\n[matplotlib]    'HDIST_CONFIG': '{\"gc_roots\":\"/local/certik/gcroots\",\"build_stores\":[{\"dir\":\"/local/certik/bld\"}],\"source_caches\":[{\"dir\":\"/local/certik/src\"}],\"cache\":\"/local/certik/cache\",\"build_temp\":\"/local/certik/tmp\"}',\r\n[matplotlib]    'HDIST_IMPORT': u'bzip2/yhn7t7sdxdfdkhyie6hg36hqvgccj7rj freetype/3j5vs5xri6335xcnnxh7kt3iudaos7lp numpy/o7mh7o3cbu5sk2wukmtmo7qeebkdb6sz patchelf/k3rloj265ogtl4dmmmbmyt34dnffryka pkg-config/nnzbjosob2benze3u2c4vhd2swgkevnq png/q24b4y6ojqdwk2nwnblutd4qrjhmlmev python/m327azitptlvocjp2othxwmlsqcmxu3i setuptools/cl5h5p575pm7wzsnkqxnxgbiql45rrkl zlib/3el5ccejre7bcjqgld5gp6iym4ccd5oe',\r\n[matplotlib]    'HDIST_IMPORT_PATHS': u'/local/certik/bld/bzip2/yhn7t7sdxdfd:/local/certik/bld/freetype/3j5vs5xri633:/local/certik/bld/numpy/o7mh7o3cbu5s:/local/certik/bld/patchelf/k3rloj265ogt:/local/certik/bld/pkg-config/nnzbjosob2be:/local/certik/bld/png/q24b4y6ojqdw:/local/certik/bld/python/m327azitptlv:/local/certik/bld/setuptools/cl5h5p575pm7:/local/certik/bld/zlib/3el5ccejre7b',\r\n[matplotlib]    'HDIST_VIRTUALS': '',\r\n[matplotlib]    u'NUMPY_DIR': u'/local/certik/bld/numpy/o7mh7o3cbu5s',\r\n[matplotlib]    u'NUMPY_ID': u'numpy/o7mh7o3cbu5sk2wukmtmo7qeebkdb6sz',\r\n[matplotlib]    'PATCHELF': u'/local/certik/bld/patchelf/k3rloj265ogt/bin/patchelf',\r\n[matplotlib]    u'PATCHELF_DIR': u'/local/certik/bld/patchelf/k3rloj265ogt',\r\n[matplotlib]    u'PATCHELF_ID': u'patchelf/k3rloj265ogtl4dmmmbmyt34dnffryka',\r\n[matplotlib]    'PATH': u'/local/certik/bld/python/m327azitptlv/bin:/local/certik/bld/pkg-config/nnzbjosob2be/bin:/local/certik/bld/freetype/3j5vs5xri633/bin:/usr/bin:/bin',\r\n[matplotlib]    u'PKG_CONFIG_DIR': u'/local/certik/bld/pkg-config/nnzbjosob2be',\r\n[matplotlib]    'PKG_CONFIG_EXECUTABLE': u'/local/certik/bld/pkg-config/nnzbjosob2be/bin/pkg-config',\r\n[matplotlib]    u'PKG_CONFIG_ID': u'pkg-config/nnzbjosob2benze3u2c4vhd2swgkevnq',\r\n[matplotlib]    'PKG_CONFIG_PATH': u'/local/certik/bld/python/m327azitptlv/lib/pkgconfig:/local/certik/bld/png/q24b4y6ojqdw/lib/pkgconfig:/local/certik/bld/freetype/3j5vs5xri633/lib/pkgconfig',\r\n[matplotlib]    u'PNG_DIR': u'/local/certik/bld/png/q24b4y6ojqdw',\r\n[matplotlib]    u'PNG_ID': u'png/q24b4y6ojqdwk2nwnblutd4qrjhmlmev',\r\n[matplotlib]    'PWD': u'/local/certik/tmp/matplotlib-l6hpd5xi44vw-1',\r\n[matplotlib]    'PYTHON': u'/local/certik/bld/python/m327azitptlv/bin/python',\r\n[matplotlib]    'PYTHONDONTWRITEBYTECODE': u'yes',\r\n[matplotlib]    'PYTHONPATH': u'/local/certik/bld/setuptools/cl5h5p575pm7/lib/python3.4/site-packages:/local/certik/bld/numpy/o7mh7o3cbu5s/lib/python3.4/site-packages',\r\n[matplotlib]    u'PYTHON_DIR': u'/local/certik/bld/python/m327azitptlv',\r\n[matplotlib]    u'PYTHON_ID': u'python/m327azitptlvocjp2othxwmlsqcmxu3i',\r\n[matplotlib]    u'SETUPTOOLS_DIR': u'/local/certik/bld/setuptools/cl5h5p575pm7',\r\n[matplotlib]    u'SETUPTOOLS_ID': u'setuptools/cl5h5p575pm7wzsnkqxnxgbiql45rrkl',\r\n[matplotlib]    u'ZLIB_DIR': u'/local/certik/bld/zlib/3el5ccejre7b',\r\n[matplotlib]    u'ZLIB_ID': u'zlib/3el5ccejre7bcjqgld5gp6iym4ccd5oe'}\r\n[matplotlib] Traceback (most recent call last):\r\n[matplotlib]   File \"<string>\", line 1, in <module>\r\n[matplotlib]   File \"<string>\", line 155, in <module>\r\n[matplotlib]   File \"/local/certik/tmp/matplotlib-l6hpd5xi44vw-1/setupext.py\", line 1031, in check\r\n[matplotlib]     min_version='1.2', version=version)\r\n[matplotlib]   File \"/local/certik/tmp/matplotlib-l6hpd5xi44vw-1/setupext.py\", line 446, in _check_for_pkg_config\r\n[matplotlib]     if (not is_min_version(version, min_version)):\r\n[matplotlib]   File \"/local/certik/tmp/matplotlib-l6hpd5xi44vw-1/setupext.py\", line 174, in is_min_version\r\n[matplotlib]     return found_version >= expected_version\r\n[matplotlib]   File \"/local/certik/bld/python/m327azitptlv/lib/python3.4/distutils/version.py\", line 76, in __ge__\r\n[matplotlib]     c = self._cmp(other)\r\n[matplotlib]   File \"/local/certik/bld/python/m327azitptlv/lib/python3.4/distutils/version.py\", line 343, in _cmp\r\n[matplotlib]     if self.version < other.version:\r\n[matplotlib] TypeError: unorderable types: str() < int()\r\n[matplotlib] ============================================================================\r\n[matplotlib] Edit setup.cfg to change the build options\r\n[matplotlib] \r\n[matplotlib] BUILDING MATPLOTLIB\r\n[matplotlib]             matplotlib: yes [1.4.2]\r\n[matplotlib]                 python: yes [3.4.2 (default, Dec  4 2014, 10:45:52)  [GCC\r\n[matplotlib]                         4.4.7 20120313 (Red Hat 4.4.7-11)]]\r\n[matplotlib]               platform: yes [linux]\r\n[matplotlib] \r\n[matplotlib] REQUIRED DEPENDENCIES AND EXTENSIONS\r\n[matplotlib]                  numpy: yes [version 1.8.2]\r\n[matplotlib]                    six: yes [six was not found.]\r\n[matplotlib]               dateutil: yes [dateutil was not found. It is required for date\r\n[matplotlib]                         axis support. pip/easy_install may attempt to\r\n[matplotlib]                         install it after matplotlib.]\r\n[matplotlib]                   pytz: yes [pytz was not found. pip will attempt to install\r\n[matplotlib]                         it after matplotlib.]\r\n[matplotlib]                tornado: yes [tornado was not found. It is required for the\r\n[matplotlib]                         WebAgg backend. pip/easy_install may attempt to\r\n[matplotlib]                         install it after matplotlib.]\r\n[matplotlib]              pyparsing: yes [pyparsing was not found. It is required for\r\n[matplotlib]                         mathtext support. pip/easy_install may attempt to\r\n[matplotlib]                         install it after matplotlib.]\r\n[matplotlib]                  pycxx: yes [Official versions of PyCXX are not compatible\r\n[matplotlib]                         with matplotlib on Python 3.x, since they lack\r\n[matplotlib]                         support for the buffer object.  Using local copy]\r\n[matplotlib]                 libagg: yes [pkg-config information for 'libagg' could not\r\n[matplotlib]                         be found. Using local copy.]\r\n[matplotlib]               freetype: yes [version 2.4.11]\r\n[matplotlib|ERROR] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1\r\n[matplotlib|ERROR] command failed (code=1); raising\r\n```\r\nThe issues #2087 and #3732 seem related.\r\n\r\nIt works in Python 2.7. The dependencies are exactly the same for 2.7 and 3.4. Here is the build script:\r\n```\r\n$ hit show python3.4.linux.yaml script matplotlib\r\nset -e\r\nexport HDIST_IN_BUILD=yes\r\nexport CPPFLAGS=\"-I${BZIP2_DIR}/include -I${FREETYPE_DIR}/include -I${NUMPY_DIR}/include -I${PATCHELF_DIR}/include -I${PKG_CONFIG_DIR}/include -I${PNG_DIR}/include -I${PYTHON_DIR}/include -I${SETUPTOOLS_DIR}/include -I${ZLIB_DIR}/include\"\r\nexport LDFLAGS=\"-L${BZIP2_DIR}/lib -Wl,-rpath=${BZIP2_DIR}/lib -L${FREETYPE_DIR}/lib -Wl,-rpath=${FREETYPE_DIR}/lib -L${NUMPY_DIR}/lib -Wl,-rpath=${NUMPY_DIR}/lib -L${PATCHELF_DIR}/lib -Wl,-rpath=${PATCHELF_DIR}/lib -L${PKG_CONFIG_DIR}/lib -Wl,-rpath=${PKG_CONFIG_DIR}/lib -L${PNG_DIR}/lib -Wl,-rpath=${PNG_DIR}/lib -L${PYTHON_DIR}/lib -Wl,-rpath=${PYTHON_DIR}/lib -L${SETUPTOOLS_DIR}/lib -Wl,-rpath=${SETUPTOOLS_DIR}/lib -L${ZLIB_DIR}/lib -Wl,-rpath=${ZLIB_DIR}/lib\"\r\n\r\nexport PYTHONPATH=${ARTIFACT}/lib/python/site-packages:$PYTHONPATH\r\nmkdir -p ${ARTIFACT}/lib/python/site-packages\r\n${PYTHON} -c 'import setuptools; __file__=\"setup.py\"; exec(open(__file__).read())' \\\r\n   install \\\r\n   --prefix=. --root=${ARTIFACT} \\\r\n   --single-version-externally-managed\r\n```\r\nAnd I used the 1.4.2 tarball: https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.4.2/matplotlib-1.4.2.tar.gz\r\n\r\nAnd I use linux (RHEL6), though we build all the dependencies ourselves."},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/93851337","html_url":"https://github.com/matplotlib/matplotlib/issues/3889#issuecomment-93851337","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/3889","id":93851337,"user":{"login":"sontek","id":151924,"avatar_url":"https://avatars.githubusercontent.com/u/151924?v=3","gravatar_id":"","url":"https://api.github.com/users/sontek","html_url":"https://github.com/sontek","followers_url":"https://api.github.com/users/sontek/followers","following_url":"https://api.github.com/users/sontek/following{/other_user}","gists_url":"https://api.github.com/users/sontek/gists{/gist_id}","starred_url":"https://api.github.com/users/sontek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sontek/subscriptions","organizations_url":"https://api.github.com/users/sontek/orgs","repos_url":"https://api.github.com/users/sontek/repos","events_url":"https://api.github.com/users/sontek/events{/privacy}","received_events_url":"https://api.github.com/users/sontek/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T22:13:07Z","updated_at":"2015-04-16T22:13:07Z","body":"hahaha, I found out why its failing... \r\n\r\n```\r\n    self.version: ['grep', ': ', 'warning', ': GREP_OPTIONS ', 'is', ' ', 'deprecated', '; ', 'please', ' ', 'use', ' ', 'an', ' ', 'alias', ' ', 'or', ' ', 'script', '\\n', 'grep', ': ', 'warning', ': GREP_OPTIONS ', 'is', ' ', 'deprecated', '; ', 'please', ' ', 'use', ' ', 'an', ' ', 'alias', ' ', 'or', ' ', 'script', '\\n', 'grep', ': ', 'warning', ': GREP_OPTIONS ', 'is', ' ', 'deprecated', '; ', 'please', ' ', 'use', ' ', 'an', ' ', 'alias', ' ', 'or', ' ', 'script', '\\n', 'grep', ': ', 'warning', ': GREP_OPTIONS ', 'is', ' ', 'deprecated', '; ', 'please', ' ', 'use', ' ', 'an', ' ', 'alias', ' ', 'or', ' ', 'script', '\\n', 'grep', ': ', 'warning', ': GREP_OPTIONS ', 'is', ' ', 'deprecated', '; ', 'please', ' ', 'use', ' ', 'an', ' ', 'alias', ' ', 'or', ' ', 'script', '\\n', 'grep', ': ', 'warning', ': GREP_OPTIONS ', 'is', ' ', 'deprecated', '; ', 'please', ' ', 'use', ' ', 'an', ' ', 'alias', ' ', 'or', ' ', 'script', '\\n', 2, 5, 3]\r\n    other.version: [2, 3]\r\n```\r\n\r\nSo I have GREP_OPTIONS in my bashrc and that is deprecated, and I guess the way you are executing the command its catching those warnings as well."}}