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 paul.moore
Recipients alexis, eric.araujo, paul.moore, tarek
Date 2012-02-13.15:32:06
SpamBayes Score 1.2121582e-11
Marked as misclassified No
Message-id <1329147128.07.0.548553326464.issue14002@psf.upfronthosting.co.za>
In-reply-to
Content
I created a bdist_wininst installer for distutils2 and installed it into my Python 2.7.2 installation. This is on Wondows, 32-bit. I then tried to do a simple install to test it was working.

>python -m distutils2.run install stemming
Checking the installation location...
Getting information about 'stemming'...
extensions in requires.txt are not supported (used by u'Genshi' 0.6)
u'pywin32': u'214' is not a valid version (field 'Version')
extensions in requires.txt are not supported (used by u'sqlpython' 1.7.2)
Traceback (most recent call last):
  File "D:\Apps\Python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "D:\Apps\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "D:\Apps\Python27\lib\site-packages\distutils2\run.py", line 664, in <module>
    sys.exit(main())
  File "D:\Apps\Python27\lib\site-packages\distutils2\run.py", line 651, in main
    return dispatcher()
  File "D:\Apps\Python27\lib\site-packages\distutils2\run.py", line 639, in __call__
    return func(self, self.args)
  File "D:\Apps\Python27\lib\site-packages\distutils2\run.py", line 91, in wrapper
    return f(*args, **kwargs)
  File "D:\Apps\Python27\lib\site-packages\distutils2\run.py", line 167, in _install
    return not install(target)
  File "D:\Apps\Python27\lib\site-packages\distutils2\install.py", line 514, in install
    info = get_infos(project)
  File "D:\Apps\Python27\lib\site-packages\distutils2\install.py", line 338, in get_infos
    release = index.get_release(requirements)
  File "D:\Apps\Python27\lib\site-packages\distutils2\pypi\wrapper.py", line 28, in decorator
    if f != func.im_self and hasattr(f, func.f_name):
AttributeError: 'function' object has no attribute 'f_name'

The initial errors look like complaints about existing packages I have installed by other means (setuptools or bdist_wininst). The final one looks like a bug in distutils2, though.
History
Date User Action Args
2012-02-13 15:32:08paul.mooresetrecipients: + paul.moore, tarek, eric.araujo, alexis
2012-02-13 15:32:08paul.mooresetmessageid: <1329147128.07.0.548553326464.issue14002@psf.upfronthosting.co.za>
2012-02-13 15:32:07paul.moorelinkissue14002 messages
2012-02-13 15:32:06paul.moorecreate