[Pythonmac-SIG] import problems
Zhi Peng
zhiyong_peng2003 at yahoo.com
Sat Dec 10 01:27:22 CET 2005
Bob
Let me say
Thanks a lot for your email
First, then I will read corresponding document.
Surely it helps a lot.
Regards
Zhi
--- Bob Ippolito <bob at redivi.com> wrote:
>
> On Dec 9, 2005, at 3:55 PM, Zhi Peng wrote:
>
> > What was the difference when I try to install
> module say I have
> > module.py on Macintosh?
> >
> > from distutils.core import setup
> > setup(name="MyModule", version="1.0"
> py_modules=["module.py"])
> >
> >
> > Is above enough to set up the module? Where are
> "module.py" should
> > be in current dir?
>
> I don't really understand the question, but the
> distutils
> documentation is here:
> http://docs.python.org/dist/
>
> I would suggest using packages instead of modules,
> and to go ahead
> and use setuptools for anything new. It does a lot
> of things that
> distutils should've always done, and integrates with
> ez_setup, eggs,
> etc.
> http://peak.telecommunity.com/DevCenter/setuptools
>
> In that case, you'd end up with something like this:
>
> from setuptools import setup
> setup(name=.., version=...,
> packages=find_packages())
>
> -bob
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Pythonmac-SIG
mailing list