Re: another distutils question

2006-09-30 Thread Keith Perkins
Thanks everyone, for your answers. They've been very helpful. Keith -- http://mail.python.org/mailman/listinfo/python-list

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
Robert Kern wrote: > Instead, include the default data inside the package (read-only to non-root > users). Then allow the script itself to create the directory the first time > it > is run (read-write, and it should then automatically be accessible to the > user > that ran the script). You mi

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
Keith Perkins wrote: > > On a similar note , I have another question about distutils and data files. > I have a little program that uses a txt file to store data, and it works > fine running it in it's own folder, if I install through distutils, using > sudo to get it to write to the site-packages

Re: another distutils question

2006-09-29 Thread Robert Kern
Keith Perkins wrote: > I did install it in ~/.script/data.txt, and distutils set the > user/group as root. Is it impossible to install this with distutils? > Since I'm running setup as root, should I just add a class or method to > chown the datafolder/file to the installer. Should I use autotool

Re: another distutils question

2006-09-29 Thread Keith Perkins
On Fri, 29 Sep 2006 18:57:12 -0500, Robert Kern wrote: > Keith Perkins wrote: > >> On a similar note , I have another question about distutils and data files. >> I have a little program that uses a txt file to store data, and it works >> fine running it in it's own folder, if I install through di

Re: another distutils question

2006-09-29 Thread Robert Kern
Keith Perkins wrote: > On a similar note , I have another question about distutils and data files. > I have a little program that uses a txt file to store data, and it works > fine running it in it's own folder, if I install through distutils, using > sudo to get it to write to the site-packages f

Re: another distutils question

2006-09-29 Thread Keith Perkins
On Fri, 29 Sep 2006 13:53:46 -0400, Eric S. Johansson wrote: > is there anyway I can, in a setup.py file, set and internal equivalent > to the '--install-scripts' commandline option? > > script installation directory but I don't want on the command line where > things can go horribly wrong if

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
Eric S. Johansson wrote: > So what I have seen so far says that to be able to take data from a > series of directories scatter it to other directories may be out of > scope. It's okay. If I have to write a wrapper, it won't be the first > time. do'h. http://docs.python.org/dist/node13.html

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
Robert Kern wrote: > Eric S. Johansson wrote: > >> Now I get to puzzle out how to install the CGI plus images plus >> stylesheets plus plus plus mess. Probably a bit outside of the scope of >> distutils even if the CGI programs are Python. ;-) > > I recommend installing the data inside the pa

Re: another distutils question

2006-09-29 Thread Robert Kern
Eric S. Johansson wrote: > Now I get to puzzle out how to install the CGI plus images plus > stylesheets plus plus plus mess. Probably a bit outside of the scope of > distutils even if the CGI programs are Python. ;-) I recommend installing the data inside the package itself. In 2.4, use the

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
Robert Kern wrote: > > Okay, if it's just for internal use, then I certainly have no objection. Use > a > setup.cfg file: > >http://docs.python.org/inst/config-syntax.html > > Specifically, use something like the following section: > > [install] > install_scripts=/path/to/scripts/director

Re: another distutils question

2006-09-29 Thread Robert Kern
Eric S. Johansson wrote: > Robert Kern wrote: >> Eric S. Johansson wrote: >>> is there anyway I can, in a setup.py file, set and internal equivalent >>> to the '--install-scripts' commandline option? >> Please don't. Hard-coding that interferes with the user's decision of where >> things should

Re: another distutils question

2006-09-29 Thread Eric S. Johansson
Robert Kern wrote: > Eric S. Johansson wrote: >> is there anyway I can, in a setup.py file, set and internal equivalent >> to the '--install-scripts' commandline option? > > Please don't. Hard-coding that interferes with the user's decision of where > things should go. Only the user should be m

Re: another distutils question

2006-09-29 Thread Robert Kern
Eric S. Johansson wrote: > is there anyway I can, in a setup.py file, set and internal equivalent > to the '--install-scripts' commandline option? Please don't. Hard-coding that interferes with the user's decision of where things should go. Only the user should be making that decision, not the

another distutils question

2006-09-29 Thread Eric S. Johansson
is there anyway I can, in a setup.py file, set and internal equivalent to the '--install-scripts' commandline option? script installation directory but I don't want on the command line where things can go horribly wrong if the user forgets. I would like to create a new default setting for th