Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

Re: Bits-of-Distribute naming

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


chris at simplistix

Oct 9, 2009, 8:42 AM

Post #1 of 5 (538 views)
Permalink
Re: Bits-of-Distribute naming

Tarek Ziadé wrote:
> - The code is splitted in many packages and might be distributed under
> several distributions.
>
> - distribute.resources: that's the old pkg_resources, but
> reorganized in clean, pep-8 modules. This package will
> only contain the query APIs and will focus on being PEP 376
> compatible. We will promote its usage and see if Pip wants
> to use it as a basis. And maybe PyPM once it's open source ?
> (<hint> <hint>).
> It will probably shrink a lot though, once the stdlib provides PEP 376 support.

Why not just call it pkg_resources and/or merge it with pkgutil to get
it into the python stdlib?

> - distribute.entrypoints: that's the old pkg_resources entry points
> system, but on its own. it uses distribute.resources

Why not get it into the core as distutils.entrypoints? That's where it
belongs...

> - distribute.index: that's package_index and a few other things.
> everything required to interact with PyPI. We will promote
> its usage and see if Pip wants to use it as a basis.

Why not call in "pypi.client" and "pypi.server" or, better yet, get it
into the stdlib as disutils.index.client distutils.index.server?

> - distribute.core (might be renamed to main): that's everything
> else, and uses the other packages.

...which would be left, and could just be called "distribute".

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


ziade.tarek at gmail

Oct 9, 2009, 9:05 AM

Post #2 of 5 (494 views)
Permalink
Re: Bits-of-Distribute naming [In reply to]

On Fri, Oct 9, 2009 at 5:42 PM, Chris Withers <chris [at] simplistix> wrote:
> Tarek Ziadé wrote:
>>
>> - The code is splitted in many packages and might be distributed under
>> several distributions.
>>
>>   - distribute.resources: that's the old pkg_resources...

> Why not just call it pkg_resources and/or merge it with pkgutil to get it
> into the python stdlib?

Because "pkg_resources" belongs to 0.6 and we want 0.7 to be
installable alongside 0.6 if needed.

Now as I said earlier, this package might shrink once PEP 376 is
finished, and have bits included in pkgutil.

>
>>   - distribute.entrypoints: that's the old pkg_resources entry points
>> system, but on its own. it uses distribute.resources
>
> Why not get it into the core as distutils.entrypoints? That's where it
> belongs...

What do you call 'core' ? distutils.core ?

If yes, why does it belong to core ? entrypoint is a standalon plugin system .

>
>>   - distribute.index: that's package_index and a few other things.
>> everything required to interact with PyPI. We will promote
>>     its usage and see if Pip wants to use it as a basis.
>
> Why not call in "pypi.client" and "pypi.server" or, better yet, get it into
> the stdlib as disutils.index.client distutils.index.server?

We are keeping a "distribute." namespace for all bits.

Now maybe one day it'll make it into Distutils, yes. But not now.

Also, have a look at PEP 381 (mirroring infratructure for PyPI)

In any case, the splitting is occuring *now* and is not written in the stone,
so we can talk about this in Distutils-SIG, and improve it with your feedback.


Regards,
Tarek
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


chris at simplistix

Oct 9, 2009, 9:08 AM

Post #3 of 5 (497 views)
Permalink
Re: Bits-of-Distribute naming [In reply to]

Tarek Ziadé wrote:
>>> - distribute.entrypoints: that's the old pkg_resources entry points
>>> system, but on its own. it uses distribute.resources
>> Why not get it into the core as distutils.entrypoints? That's where it
>> belongs...
>
> What do you call 'core' ? distutils.core ?

Sorry, mean stdlib. distutils.entrypoints would seem to be the sensible
place.

>>> - distribute.index: that's package_index and a few other things.
>>> everything required to interact with PyPI. We will promote
>>> its usage and see if Pip wants to use it as a basis.
>> Why not call in "pypi.client" and "pypi.server" or, better yet, get it into
>> the stdlib as disutils.index.client distutils.index.server?
>
> We are keeping a "distribute." namespace for all bits.

Why?

> In any case, the splitting is occuring *now* and is not written in the stone,
> so we can talk about this in Distutils-SIG, and improve it with your feedback.

Shame there hasn't been any discussion of this recently on distutils-sig...

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


ziade.tarek at gmail

Oct 9, 2009, 9:14 AM

Post #4 of 5 (495 views)
Permalink
Re: Bits-of-Distribute naming [In reply to]

On Fri, Oct 9, 2009 at 6:08 PM, Chris Withers <chris [at] simplistix> wrote:
>
> Shame there hasn't been any discussion of this recently on distutils-sig...

We had many discussion on this already. I don't mind to have another
round, on the contrary,
but let's do it in Distutils-SIG

We are making a lot of noise now in Python-dev, which is not required

Tarek
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


regebro at gmail

Oct 9, 2009, 11:23 AM

Post #5 of 5 (495 views)
Permalink
Re: Bits-of-Distribute naming [In reply to]

2009/10/9 Chris Withers <chris [at] simplistix>:
> Why not get it into the core as distutils.entrypoints? That's where it
> belongs...

Well, one reason is that it can't be distributed separately under that
name, and hence not be tested separately or bugfixed separately.

Rule #1 for inclusion in the standard library is that the module
pretty much is dead, and that you don't need new releases or new
features. This isn't true for any part of a refactored setuptools. We
will need to distribute most of this separately for a while first.

That means that distutils.anything doesn't work.

--
Lennart Regebro: Python, Zope, Plone, Grok
http://regebro.wordpress.com/
+33 661 58 14 64
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.