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 eric.araujo
Recipients alexis, brett.cannon, eric.araujo, ncoghlan, tarek
Date 2011-09-07.16:12:47
SpamBayes Score 1.9002054e-07
Marked as misclassified No
Message-id <1315411968.07.0.253348749085.issue12934@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-09-07 16:12:48eric.araujosetrecipients: + eric.araujo, brett.cannon, ncoghlan, tarek, alexis
2011-09-07 16:12:48eric.araujosetmessageid: <1315411968.07.0.253348749085.issue12934@psf.upfronthosting.co.za>
2011-09-07 16:12:47eric.araujolinkissue12934 messages
2011-09-07 16:12:47eric.araujocreate