<p>Does that mean we can just add python utilities to that package, or do we need to create petsc-util?</p>
<div class="gmail_quote">On Jul 30, 2011 12:07 PM, "Lisandro Dalcin" <<a href="mailto:dalcinl@gmail.com">dalcinl@gmail.com</a>> wrote:<br type="attribution">> On 25 July 2011 19:33, Jed Brown <<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>> wrote:<br>
>> On Mon, Jul 25, 2011 at 10:16, Ethan Coon <<a href="mailto:ecoon@lanl.gov">ecoon@lanl.gov</a>> wrote:<br>>>><br>>>> It's not really a stand-alone script though, so it shouldn't get the<br>
>>> hashbang or lose the extension. But it's not a full-fledged package of<br>>>> libraries either. I don't think it should be anywhere in the default path<br>>>> -- it's the kind of code that you should have to explicitly include (either<br>
>>> via sys.path manipulation or via PYTHONPATH) because too many little scripts<br>>>> of utility code makes for a nasty, polluted namespace. There just isn't a<br>>>> good place (that I know of) in the standard file system hierarchy for this<br>
>>> kind of stuff.<br>>><br>>> Making the user/scripts do manual sys.path or PYTHONPATH manipulation makes<br>>> it nearly impossible to make portable scripts that depend on these<br>>> functions. Should we start a "proper" Python package containing PETSc<br>
>> utilities? Then scripts could rely on<br>>> from <a href="http://petsc.io">petsc.io</a> import binary_read<br>>> or whatever working. Of course it might only contain two functions right<br>>> now, but I could add my "petscplot" (makes various types of convergence and<br>
>> scaling plots from convergence monitors and -log_summary output), and I'm<br>>> sure the community has other useful scripts.<br>> <br>> Note however that "petsc" package is already registered in PyPI to<br>
> make "pip install petsc4py" download and install PETSc.<br>> <br>> <br>> -- <br>> Lisandro Dalcin<br>> ---------------<br>> CIMEC (INTEC/CONICET-UNL)<br>> Predio CONICET-Santa Fe<br>> Colectora RN 168 Km 472, Paraje El Pozo<br>
> 3000 Santa Fe, Argentina<br>> Tel: +54-342-4511594 (ext 1011)<br>> Tel/Fax: +54-342-4511169<br></div>