Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94831 > unrolled thread

Re: debugging during package development

Started byTerry Reedy <tjreedy@udel.edu>
First post2015-08-01 02:44 -0400
Last post2015-08-01 02:44 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: debugging during package development Terry Reedy <tjreedy@udel.edu> - 2015-08-01 02:44 -0400

#94831 — Re: debugging during package development

FromTerry Reedy <tjreedy@udel.edu>
Date2015-08-01 02:44 -0400
SubjectRe: debugging during package development
Message-ID<mailman.1125.1438411508.3674.python-list@python.org>
On 8/1/2015 12:21 AM, Seb wrote:

> It seems too cumbersome to have to update `sys.path` to include the
> development tree of a package (and sub-packages) that's still very
> young.  With lots of debugging to do, the last thing I'd want is to
> worry about the search path.  So I've been searching for better ways to
> work, but I can't seem hit the right keywords and come with all sorts of
> tangentially related stuff.  I'm sure there must be some tool that sets
> up the development environment when the package source is not on
> `sys.path`.  Any advice on this topic would be appreciated.

I am not sure what you are asking, but do you know about .pth files in 
site-packages?  For each python installed, I put in site-packages a 
python.pth containing one line "F:/python".  That file contains my 
project directory, call it x/  Running any version of python, 'from x 
import y' or 'from x.y import z' just works, the same as if x/ *were* in 
site-packages, and will be if I ever distribute the x package. No fuss 
with search paths; python plugs x into site-packages for me.

I do not know where this is documented.

-- 
Terry Jan Reedy

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web