[Python-Dev] "setuptools has divided the Python community"

Barry Warsaw barry at python.org
Thu Mar 26 20:37:50 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mar 26, 2009, at 2:31 PM, Guido van Rossum wrote:

>> One thing that /would/ be helpful though is the ability to list all  
>> the
>> resources under a specific package path.  This is (I think) one use  
>> case
>> that pkg_resource fails to support and it's the one place that I've  
>> had to
>> drop down to file system introspection.
>>
>> Think: the package-y flavor of  
>> os.listdir(os.path.dirname(package.__file__))
>
> Good idea. Can I suggest that API this takes a glob-style pattern? (Or
> to be fully general, a list of patterns and a list of exclusion
> patterns.)

Good idea.  Thinking back on my typical use cases, a glob style  
pattern would be enough.  Usually I'm asking "give me all the .py  
files in this package" or "I'm looking for the .txt files in this path".

Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iQCVAwUBScvZjnEjvBPtnXfVAQKtIQP9HVCkFI8o0bHbUxA+lS3CUa2NzyeKgs9j
MKWjC9yOT+oMhZXa0CZJfzmjwjn7Bum5+7W4TWNsMQPWfCPWl/D6oQlBI/UXa66d
VQpjA05PkxEgMuvmFMGwpMiG2h668kKBKvbKUVsxNIJI3fvBj1TyYpVpQKVNHNep
xnEPyWK9ylM=
=YhoQ
-----END PGP SIGNATURE-----


More information about the Python-Dev mailing list