This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author a.badger
Recipients a.badger, barry, doko, tarek
Date 2011-02-12.18:28:05
SpamBayes Score 6.7154156e-06
Marked as misclassified No
Message-id <1297535287.04.0.13129153677.issue11200@psf.upfronthosting.co.za>
In-reply-to
Content
When trying to build distribute on the latest python-3.2rc I get the following traceback in the unittests (two others that are similar as well):

======================================================================
ERROR: test_develop (setuptools.tests.test_develop.TestDevelopTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.2/distutils/util.py", line 283, in subst_vars
    return re.sub(r'\$([a-zA-Z_][a-zA-Z_0-9]*)', _subst, s)
  File "/usr/lib/python3.2/re.py", line 167, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "/usr/lib/python3.2/distutils/util.py", line 280, in _subst
    return os.environ[var_name]
  File "/usr/lib/python3.2/os.py", line 450, in __getitem__
    value = self._data[self.encodekey(key)]
KeyError: b'abiflags'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "build/src/setuptools/tests/test_develop.py", line 52, in test_develop
    cmd.ensure_finalized()
  File "/usr/lib/python3.2/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "build/src/setuptools/command/develop.py", line 51, in finalize_options
    easy_install.finalize_options(self)
  File "build/src/setuptools/command/easy_install.py", line 225, in finalize_options
    self.expand_dirs()
  File "build/src/setuptools/command/easy_install.py", line 335, in expand_dirs
    'install_scripts', 'install_data',])
  File "build/src/setuptools/command/easy_install.py", line 323, in _expand_attrs
    val = subst_vars(val, self.config_vars)
  File "/usr/lib/python3.2/distutils/util.py", line 285, in subst_vars
    raise ValueError("invalid variable '$%s'" % var)
ValueError: invalid variable '$b'abiflags''

It seems that something in the addition of abiflags is causing distutils to search for abiflags in os.environ.  After talking with tarek on IRC we decided to open a bug here to see whether this is desirable change in behaviour within the stdlib.

The revision introducing abiflags is here: http://svn.python.org/view?view=rev&revision=85697
History
Date User Action Args
2011-02-12 18:28:07a.badgersetrecipients: + a.badger, barry, doko, tarek
2011-02-12 18:28:07a.badgersetmessageid: <1297535287.04.0.13129153677.issue11200@psf.upfronthosting.co.za>
2011-02-12 18:28:05a.badgerlinkissue11200 messages
2011-02-12 18:28:05a.badgercreate