Issue #15 resolved

Not Python 2.6 compatible

Richard Jones
created an issue

This package is not Python 2.6 compatible but I believe that is the intention.

The issue is in the distlib._backport.sysconfig module's inability to find sysconfig.cfg:

(py26) richard$ python -V
Python 2.6.7
(py26) richard$ pip install distlib
Downloading/unpacking distlib
...
(py26) richard$ python -c 'import distlib.wheel'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/richard/virtualenvs/py26/lib/python2.6/site-packages/distlib/wheel.py", line 47, in <module>
    VER_SUFFIX = sysconfig.get_config_var('py_version_nodot')
  File "/Users/richard/virtualenvs/py26/lib/python2.6/site-packages/distlib/_backport/sysconfig.py", line 599, in get_config_var
    return get_config_vars().get(name)
  File "/Users/richard/virtualenvs/py26/lib/python2.6/site-packages/distlib/_backport/sysconfig.py", line 495, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/Users/richard/virtualenvs/py26/lib/python2.6/site-packages/distlib/_backport/sysconfig.py", line 346, in _init_posix
    makefile = get_makefile_filename()
  File "/Users/richard/virtualenvs/py26/lib/python2.6/site-packages/distlib/_backport/sysconfig.py", line 340, in get_makefile_filename
    return os.path.join(get_path('stdlib'), config_dir_name, 'Makefile')
  File "/Users/richard/virtualenvs/py26/lib/python2.6/site-packages/distlib/_backport/sysconfig.py", line 459, in get_path
    return get_paths(scheme, vars, expand)[name]
  File "/Users/richard/virtualenvs/py26/lib/python2.6/site-packages/distlib/_backport/sysconfig.py", line 447, in get_paths
    _ensure_cfg_read()
  File "/Users/richard/virtualenvs/py26/lib/python2.6/site-packages/distlib/_backport/sysconfig.py", line 74, in _ensure_cfg_read
    assert _cfgfile, 'sysconfig.cfg exists'
AssertionError: sysconfig.cfg exists

Comments (2)

  1. Vinay Sajip

    This was a problem caused by omitting package_data= in setup.py. This should be fixed in distlib 0.1.2, which I have now uploaded to PyPI. This should fix the problem - please try it and confirm that's the case.

  2. Log in to comment