[Distutils] Where should I put tests when packaging python modules?

Antoine Pitrou solipsis at pitrou.net
Tue Oct 6 16:24:21 CEST 2015


On Tue, 6 Oct 2015 09:33:03 -0400
Donald Stufft <donald at stufft.io> wrote:
> On October 6, 2015 at 9:08:12 AM, Antoine Pitrou (solipsis at pitrou.net) wrote:
> > On Tue, 6 Oct 2015 08:57:12 -0400
> > Donald Stufft wrote:
> > >
> > > It doesn't really make experimenting in a VCS any harder, since all you need to
> > > do first is run ``pip install -e .`` and it will do a development install and
> > > add the src/ directory to sys.path.
> >  
> > That means you're suddently polluting your Python install with a
> > development package. So either you create a dedicated virtualenv (more
> > command-line boilerplate, including each time you switch from a project
> > another) or you risk messing with other package installs.
> 
> Unless your project has zero dependencies you’ll want to use a dedicated virtual environment anyways.

Not necessarily, you can share that environment with other projects.

Regards

Antoine.


More information about the Distutils-SIG mailing list