Re: [Distutils] Setuptools 3.0b1 available for preview

2014-02-13 Thread Sebastien Douche
On Thu, Feb 13, 2014 at 7:03 PM, PJ Eby  wrote:
>> are theses lines good?
>
> Yes.  The main idea is just that the __init__.py must set up the
> namespace package, and not rely on setuptools doing the declaration
> implicitly/automatically.

Understood. We use these lines from the beginning. Thanks.


-- 
Sebastien Douche 
Twitter: @sdouche / G+: +sdouche
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] Setuptools 3.0b1 available for preview

2014-02-13 Thread PJ Eby
On Wed, Feb 12, 2014 at 11:11 AM, Sebastien Douche  wrote:
> On Wed, Feb 12, 2014 at 5:09 AM, Jason R. Coombs  wrote:
>
> Hi Jason
>
>> This backward-incompatible release contains the changes detailed in the
>> CHANGES.txt file:
>
> Issue #148: When building (bdist_egg), setuptools no longer adds
>   ``__init__.py`` files to namespace packages. Any packages that rely on this
>   behavior will need to create ``__init__.py`` files and include the
>   ``declare_namespace()``.
>
> Thing like:
>
> try:
> __import__('pkg_resources').declare_namespace(__name__)
> except ImportError:
> from pkgutil import extend_path
> __path__ = extend_path(__path__, __name__)
> __init__.py (END)
>
> are theses lines good?

Yes.  The main idea is just that the __init__.py must set up the
namespace package, and not rely on setuptools doing the declaration
implicitly/automatically.
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig