ContinuumIO / anaconda-recipes

Continuum managed recipes for free anaconda packages.
Other
121 stars 61 forks source link

Pylint dependencies are insufficient #79

Open rogalski opened 7 years ago

rogalski commented 7 years ago

Consider subsection from output of conda info pylint:

pylint 1.6.4 py27_1
-------------------
file name   : pylint-1.6.4-py27_1.tar.bz2
name        : pylint
version     : 1.6.4
build string: py27_1
build number: 1
channel     : defaults
size        : 316 KB
arch        : x86_64
date        : 2017-01-26
license     : GPL
license_family: GPL2
md5         : 0f1473fd07f18289f4008b8f58167e34
noarch      : None
platform    : darwin
url         : https://repo.continuum.io/pkgs/free/osx-64/pylint-1.6.4-py27_1.tar.bz2
dependencies:
    astroid >=1.4.1,<1.5.0
    isort >=4.2.5
    python 2.7*
    six

Actually, Pylint requires additional backports to work correctly.

extras_require = {}
extras_require[':sys_platform=="win32"'] = ['colorama']
extras_require[':python_version=="2.7"'] = ['configparser', 'backports.functools_lru_cache']

Same issue will arise in next release with singledispatch backport

Current conda install:

               platform : osx-64
          conda version : 4.3.9
       conda is private : False
      conda-env version : 4.3.9
    conda-build version : not installed
         python version : 2.7.13.final.0
       requests version : 2.12.4
       root environment : /Users/rogalski/anaconda  (writable)
    default environment : /Users/rogalski/anaconda
       envs directories : /Users/rogalski/anaconda/envs
          package cache : /Users/rogalski/anaconda/pkgs
           channel URLs : https://repo.continuum.io/pkgs/free/osx-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/osx-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/osx-64
                          https://repo.continuum.io/pkgs/pro/noarch
            config file : /Users/rogalski/.condarc
           offline mode : False
             user-agent : conda/4.3.9 requests/2.12.4 CPython/2.7.13 Darwin/16.4.0 OSX/10.12.3
                UID:GID : 501:20

See PyCQA/pylint#1296 for additional insight.

fredwheeler commented 7 years ago

A work-around for missing backports.functools_lru_cache is to install it from the conda-forge-channel.

conda install --channel conda-forge backports.functools_lru_cache

For me this install resolved the following error. pylint now seems to work fine in python 2.

Problem importing module variables.py: No module named functools_lru_cache
Problem importing module variables.pyc: No module named functools_lru_cache