New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement pkgutil APIs as described in PEP 376 #49158
Comments
Let's add a "get_metadata" API in Distutils that would return >>> from distutils import get_metadata
>>> get_metadata('ThePackage')
{..} (Working on a prototype) |
It looks like the best way to do this is to:
|
heres a first simple draft, that works on .egg-info files, (the Description extractor needs to rework, but this patch is enough to |
The patch didn't install correctly using 'patch', but I manually merged After installing, I attempted to use the new code to determine the Here's a dir dump of my installed egg: |
yes the patch doesn't treat the eggs installed with easy_install yet, I'll let you know when EGG_INFO/PKG-INFO is ready (should be in the |
I've tested it out using the straight distutils installation, and it |
Is it intended that when reading PKG-INFO files the PEP-314 attributes I'd expected that those attributes are available regardless of the |
I have improved the patch (uploaded here) (some cases are not done yet, Ray, it should work with egg generated by setuptools now, (zipped as well) Andi, right ! -> fixed in the current patch |
any chance of getting a patch that would work in 2.4? |
Well since Python 2.4 doesn't have the egg-info feature, that is another |
There wouldn't be an easy way to read the distutils setup.py info at On 1/24/09, Tarek Ziadé <report@bugs.python.org> wrote:
|
This patch will be applied for the part that makes DistributionMetadata The other part is waiting for PEP-376. |
Work done in pkgutil, in the Distutils2 project, see PEP-376 for API names. |
Reversing the duplicate relation with bpo-8250 since this report has more messages. Not reopening though, since the work is done. Kudos to Josip! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: