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

Donald Stufft donald at stufft.io
Tue Oct 6 15:33:03 CEST 2015


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.

-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA




More information about the Distutils-SIG mailing list