Message from discussion
need a namespace package guru....
Received: by 10.224.173.70 with SMTP id o6mr2985808qaz.2.1334439634957;
Sat, 14 Apr 2012 14:40:34 -0700 (PDT)
X-BeenThere: pylons-discuss@googlegroups.com
Received: by 10.229.201.222 with SMTP id fb30ls1131334qcb.6.gmail; Sat, 14 Apr
2012 14:40:27 -0700 (PDT)
Received: by 10.224.97.134 with SMTP id l6mr2983796qan.6.1334439627894;
Sat, 14 Apr 2012 14:40:27 -0700 (PDT)
Received: by 10.224.97.134 with SMTP id l6mr2983795qan.6.1334439627883;
Sat, 14 Apr 2012 14:40:27 -0700 (PDT)
Return-Path: <mike...@zzzcomputing.com>
Received: from starfish.geekisp.com (starfish.geekisp.com. [216.168.135.166])
by gmr-mx.google.com with ESMTPS id c25si5673575qch.2.2012.04.14.14.40.27
(version=TLSv1/SSLv3 cipher=OTHER);
Sat, 14 Apr 2012 14:40:27 -0700 (PDT)
Received-SPF: neutral (google.com: 216.168.135.166 is neither permitted nor denied by best guess record for domain of mike...@zzzcomputing.com) client-ip=216.168.135.166;
DomainKey-Status: bad format
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 216.168.135.166 is neither permitted nor denied by best guess record for domain of mike...@zzzcomputing.com) smtp.mail=mike...@zzzcomputing.com; domainkeys=neutral (bad format) header.From=mike...@zzzcomputing.com
Received: (qmail 5615 invoked by uid 1003); 14 Apr 2012 21:40:26 -0000
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=default; d=zzzcomputing.com;
b=Xxtda+cd3sK3EayWqEavM5m+cQDd65mvHrd4koilFVyR4UHrJ0PnerRhMEH6x1CAHXCjX6RoMaYOr5YuTGKbiVZ6ZANueNaRoOg3lRBWsPOfzn0/dWJ72KcW7fCOVKSi ;
Received: from unknown (HELO ?192.168.1.109?) (clas...@zzzcomputing.com@173.3.207.254)
by mail.geekisp.com with SMTP; 14 Apr 2012 21:40:26 -0000
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Apple Message framework v1084)
Subject: Re: need a namespace package guru....
From: Michael Bayer <mike...@zzzcomputing.com>
In-Reply-To: <AA57BF82-0A32-4DA3-A159-82CC16539F51@zzzcomputing.com>
Date: Sat, 14 Apr 2012 17:40:26 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <06EFF806-5E68-4427-B022-1D1718D17...@zzzcomputing.com>
References: <AA57BF82-0A32-4DA3-A159-82CC16539...@zzzcomputing.com>
To: pylons-discuss@googlegroups.com
X-Mailer: Apple Mail (2.1084)
it seems like my entire concept of having "root" and "root.subpackage", =
the way "sqlalchemy" and "sqlalchemy.orm" do, is just entirely wrong =
from a "namespace package" point of view. While I think what I'm doing =
does actually work, this is not what anyone had in mind with "namespace =
packages".
I'm tempted to just merge these two things together. But I think I'll =
just move "dogpile" into "dogpile.core" and just get in line with =
everyone else.
On Apr 14, 2012, at 4:08 PM, Michael Bayer wrote:
> I think I released the dogpile.cache stuff incorrectly, actually =
installing the packages it seems like I got the namespace package stuff =
wrong. I have the "pkg_resources.declare_namespace" directive in the =
dogpile/__init__.py of dogpile.cache but not of dogpile, and it appears =
that this needs to be exactly the opposite.
>=20
> Can someone help me set up dogpile and dogpile.cache correctly? =
Here's a paste of what *seems* to work:
>=20
> http://paste.pocoo.org/show/581532/
>=20
> the questions I have are:
>=20
> 1. Is it OK if I have "__version__" and a few other things in =
dogpile/__init__.py of the root project ? this seems to work, as =
"dogpile" is always imported first, but the docs at =
http://packages.python.org/distribute/setuptools.html#namespace-packages =
might suggest otherwise:=20
>=20
> "You must NOT include any other code and data in a namespace package=92s=
__init__.py. Even though it may appear to work during development, or =
when projects are installed as .egg files, it will not work when the =
projects are installed using =93system=94 packaging tools =96 in such =
cases the __init__.py files will not be installed, let alone executed."
>=20
> 2. since "dogpile" is always imported first it seems like I don't need =
anything in the dogpile/__init__.py of that of dogpile.cache ?
>=20
> 3. or is "dogpile" not always imported first in this scenario ? how =
would I see that ?
>=20
>=20
> --=20
> You received this message because you are subscribed to the Google =
Groups "pylons-discuss" group.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to =
pylons-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at =
http://groups.google.com/group/pylons-discuss?hl=3Den.
>=20