patch distutils to look into .dist-info directories
https://bitbucket.org/dholth/distribute/changeset/0c805a76aa61 Or replacing entry_points for distutils2-style distributions with itself. Is there a name for distutils2-style distributions? (things with a .dist-info directory)? Daniel Holth
On Sat, Jun 23, 2012 at 2:20 AM, Daniel Holth
https://bitbucket.org/dholth/distribute/changeset/0c805a76aa61
Just a suggestion: you might want to delay importing email.parser until it's actually needed; i.e. import it inside the @property where you're actually using it.
OK I'll do that. Of course it also means the code won't work on Python < when e-mail.parser was introduced. What is the floor on Python versions for distutils? Would it work to require Python 2.6 just for the .dist-info bits?
On Mon, Jun 25, 2012 at 8:35 PM, Daniel Holth
OK I'll do that. Of course it also means the code won't work on Python < when e-mail.parser was introduced.
What is the floor on Python versions for distutils?
distribute and setuptools try to support Python >= 2.3 - though the earlier versions have likely seen less testing as of late. Not sure if you really meant distutils, as that is part of Python itself.
Would it work to require Python 2.6 just for the .dist-info bits?
That's not ideal in any way, but I'd say practicality beats purity here. So if it's much simpler to write this code for Python 2.6, go for it. Hanno
My markers implementation uses 'ast' from Python 2.6, so it would be a pain to take it further back than Python 2.5. I think it's probably a safe bet that Python 2.3 users do not want any .dist-info directories in their sys.path. (https://bitbucket.org/dholth/wheel/src/b400adaad0fe/wheel/markers.py)
Got it. https://bitbucket.org/dholth/distribute now includes the lazy email.Parser() import and lazily imports 'markerlib' to implement environment markers. BW compat should be easy as long as you don't use .dist-info directories in your Python 2.3. It implements the Provides-Extra: proposal to compute dependencies for extras, important if you are converting existing packages to the 1.2 version of the metadata. Hopefully this is enough to convert a bunch of existing packages over to .dist-info and Metadata 1.2 to see how it goes, without having to affect setuptools users that much.
participants (3)
-
Daniel Holth
-
Hanno Schlichting
-
PJ Eby