New submission from Éric Araujo <mer...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12934>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to