[Distutils] newbie distutils questions *please*...

seberino at spawar.navy.mil seberino at spawar.navy.mil
Thu Oct 2 20:38:52 EDT 2003

Thanks! This is all great and useful info.

sdist  = py files
bdist* = py or pyc files

*Which* bdist_* switches have py files and which have pyc files??
Especially what do bdist_rpm and bdist have?


On Wed, Oct 01, 2003 at 10:05:08AM -0400, amk at amk.ca wrote:
> On Tue, Sep 30, 2003 at 04:50:25PM -0700, seberino at spawar.navy.mil wrote:
> > 3. Will bdist_rpm install JUST pyc files (bytecode)???
> >    Will sdist     install JUST py (source) files???
> >    What about installing source and bytecode?? (py and pyc)??
> >    How do that and is THAT a good idea???
> Binary distributions (bdist) means that C extensions are compiled and the
> user installing them doesn't need a C compiler.  .py files are also
> installed, and may or may not be compiled into .pyc files, depending on the
> bdist format.
> Source distributions require users to run "setup.py install" to install
> them, and if the package contains C extensions and the user doesn't have a C
> compiler, they'll be unable to install the package.
> For packages consisting of only Python code, there's only a slight
> difference between source and binary distributions from the end user's point
> of view.  C extensions make the difference greater; in particular, few
> Windows users will have a compiler.
> --amk
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig


Christian Seberino, Ph.D.
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385

Phone: (619) 553-9973
Fax  : (619) 553-6521
Email: seberino at spawar.navy.mil

More information about the Distutils-SIG mailing list