how to create a pip package

Floris Bruynooghe floris.bruynooghe at gmail.com
Tue Nov 10 11:06:33 EST 2009


On Nov 10, 2:30 pm, Phlip <phlip2... at gmail.com> wrote:
> On Nov 10, 1:54 am, Wolodja Wentland <wentl... at cl.uni-heidelberg.de>
> wrote:
>
> >http://docs.python.org/library/distutils.html#module-distutils
> >http://packages.python.org/distribute/
>
> ktx... now some utterly retarded questions to prevent false starts.
>
> the distutils page starts with "from distutils.core import setup".
>
> but a sample project on github, presumably a pippable project, starts
> with:
>
>     from setuptools import setup, find_packages
>
> (and it also has ez_setup())
>
> I don't foresee my project growing larger than one* file any time
> soon. 'pip freeze' prob'ly won't write a setup.py. What is the
> absolute simplest setup.py to stick my project on the PYTHONPATH, and
> be done with it?

Do what the distutils page says, setuptools tries to extend distutils
with many fancy things but if you don't need those (and that's what it
sounds like) then sticking to distutils is better as you only require
the python stdlib.

Regards
Floris



More information about the Python-list mailing list