[New-bugs-announce] [issue12934] pysetup doesn’t work for the docutils project

Éric Araujo report at bugs.python.org
Wed Sep 7 18:12:48 CEST 2011


New submission from Éric Araujo <merwok at netwok.org>:

I tried to run “pysetup metadata” in a docutils source directory but the program failed, because packaging tries to import docutils and it picks up the 2.x version in the local directory.

The import chain is: pysetup → packaging.run → packaging.metadata → docutils

I could edit sys.path in pysetup, but that would mean that people calling “python3.y -m packaging.run” would not get the fix.  Another idea would be to catch both ImportError and SyntaxError when packaging.metadata tries to import docutils, but it would be better to find the 3.x version of docutils in site-packages if it exists.

What do you import experts think?

----------
assignee: tarek
components: Distutils2
messages: 143695
nosy: alexis, brett.cannon, eric.araujo, ncoghlan, tarek
priority: normal
severity: normal
status: open
title: pysetup doesn’t work for the docutils project
versions: 3rd party, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12934>
_______________________________________


More information about the New-bugs-announce mailing list