On 07 September 2002, Guido van Rossum said:
> If and when we package this, perhaps we should use Barry's trick
> from the email package for making the package itself the toplevel dir
> of the distribution (rather than requiring an extra directory level
> just so the package can be a subdir of the distro).
It's not a *trick*!  It just requires this
package_dir = {'spambayes': '.'}
in the setup script.
harrumph!  "trick" indeed...
Greg
--
Greg Ward <gward@python.net>                         http://www.gerg.ca/
A committee is a life form with six or more legs and no brain.

Your message of "Sun, 08 Sep 2002 03:18:49 EDT."
             <LNBBLJKPBEHFEDALKOLCGEOIBCAB.tim.one@comcast.net>

> I'd prefer to strip HTML tags from everything, but last time I tried
> that it still had bad effects on the error rates in my corpora
Your corpora are biased in this respect though -- newsgroups have a
strong social taboo on posting HTML, but in many people's personal
inboxes it is quite abundant.
Getting a good ham corpus may prove to be a bigger hurdle than I
though!  My own saved mail doesn't reflect what I receive, since I
save and throw away selectively (much more so than in the past :-).
> >   multipart/mixed
> >       text/plain        (brief text plus URL(s))
> >       text/html         (long HTML copied from website)
>
> Ah!  That explains why the HTML tags didn't get stripped.  I'd again
> offer to add an optional argument to tokenize() so that they'd get
> stripped here too, but if it gets glossed over a third time that
> would feel too much like a loss <wink>.
I'll bite.  Sounds like a good idea to strip the HTML in this case;
I'd like to see how this improves the f-p rate on this corpus.
--Guido van Rossum (home page: http://www.python.org/~guido/)

>> If and when we package this, perhaps we should use Barry's trick ...
Greg> It's not a *trick*!  It just requires this
Greg>   package_dir = {'spambayes': '.'}
Greg> in the setup script.
That has the nasty side effect of placing all .py files in the package.
What about obvious executable scripts (like timtest or hammie)?  How can I
keep them out of the package?
Skip