<div dir="ltr"><div><div><div><div><div>Hi Mary:<br><br></div>I am not a pip expert but what I know is:<br><br></div>pip is just executing your setup.py, what I do for one of my projects is: add a call to make and package the Makefile...(<a href="https://github.com/guziy/pylibrmn/blob/master/setup.py">https://github.com/guziy/pylibrmn/blob/master/setup.py</a>)<br><br></div>There is a package netcdf4-python on github, it depends on hdf5 and netcdf and just checks if those 2 are installed either by looking at env variables HDF5_DIR, NETCDF4_DIR, or using config utilities nc-config .... <a href="https://github.com/Unidata/netcdf4-python">https://github.com/Unidata/netcdf4-python</a><br><br></div>What I would do is just list those dependencies, and the way they are supposed to be built, compiler versions and flags, and install only wrappers and python codes using pip...<br><br></div>Cheers<br><div><div><br><br><br><br><div><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-27 11:44 GMT-05:00 Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi all,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">All of the NCL, PyNGL, and PyNIO code is currently under subversion. We have talked about moving to other source code control systems, but would need to do all three packages simultaneously, and just haven't had the time yet.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">These three software packages depend on about 20 external software packages, several of which have different build systems, and we've been trying to see what it would take to get these all under some common build system. Many of these packages have to be built a specific way with particular options turned off, so they don't clash with other packages. This means we can't use generically built packages that are provided by other vendors. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The main issue for me is my admitted lack of knowledge on how pip works. I assuming that all the external packages that PyNIO and PyNGL depend on would also have to be either prebuilt on many systems, or would have to be readily buildable via source code. Several of these packages are not under github either.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The packages that are required include:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default">cairo</div><div class="gmail_default">curl</div><div class="gmail_default">esmf</div><div class="gmail_default">expat</div><div class="gmail_default">freetype</div><div class="gmail_default">g2clib</div><div class="gmail_default">gdal</div><div class="gmail_default">hdf</div><div class="gmail_default">hdf5</div><div class="gmail_default">hdfeos</div><div class="gmail_default">hdfeos5</div><div class="gmail_default">jasper</div><div class="gmail_default">jpeg</div><div class="gmail_default">libpng</div><div class="gmail_default">libxml2</div><div class="gmail_default">netcdf</div><div class="gmail_default">pixman</div><div class="gmail_default">pkg-config</div><div class="gmail_default">proj</div><div class="gmail_default">szip</div><div class="gmail_default">udunits</div><div class="gmail_default">zlib</div><div><br></div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As a side: I used conda to install different versions of Python and NumPy, and see that it has a free service called Binstar for hosting software for package managers. I had to give up on conda, because it was using the old, default compiler on my Mac, and I couldn't build my other packages with this compiler. I realize there's probably a way to customize conda so that it uses a newer compiler, but I haven't tried this yet.</div><div class="gmail_default" style="font-size:small"><br>Given my lack of experience with python installers, I would love to hear from the python community about how we could best proceed with getting all of these packages to work with a python installer like pip. It seems there's more than one way to do this, but it's not clear to me what is the best way.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks for the discussion!</div><span class="HOEnZb"><font color="#888888"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 18, 2014 at 7:42 AM, Root, Benjamin <span dir="ltr"><<a href="mailto:broot@aer.com" target="_blank">broot@aer.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+1 for posting to github or any one of the other code collaboration<br>
sites like gitlab, sourceforge (which supports both svn and git), etc.<br>
<br>
Same thing, if possible, for PyNIO, please? One of the biggest barriers<br>
for me recommending PyNIO to others has been the lack of the ability to<br>
do "pip install pynio".<br>
<br>
Cheers!<br>
Ben Root<br>
<span><br>
On Wed 17 Dec 2014 05:15:41 PM EST, Radovan Bast wrote:<br>
> +1<br>
> i wanted to ask the exact same question almost the exact same moment.<br>
> i think PyNGL is a great code and i believe it would greatly benefit<br>
> to be placed under GitHub, then everybody could submit patches<br>
> and it would be less work for Mary et al.<br>
> best greetings,<br>
> radovan<br>
><br>
> On Wed, Dec 17, 2014 at 10:26 PM, Oleksandr Huziy<br>
</span><span>> <<a href="mailto:guziy.sasha@gmail.com" target="_blank">guziy.sasha@gmail.com</a> <mailto:<a href="mailto:guziy.sasha@gmail.com" target="_blank">guziy.sasha@gmail.com</a>>> wrote:<br>
><br>
> Is there a reason why you are not putting it on github?<br>
><br>
> Cheers<br>
><br>
> 2014-12-17 15:59 GMT-05:00 Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a><br>
</span>> <mailto:<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>>>:<br>
<span>><br>
> Thanks Orion, I'll take a look at the code and implement these<br>
> changes.<br>
><br>
> --Mary<br>
><br>
><br>
> On Tue, Dec 16, 2014 at 3:32 PM, Orion Poplawski<br>
</span><span>> <<a href="mailto:orion@cora.nwra.com" target="_blank">orion@cora.nwra.com</a> <mailto:<a href="mailto:orion@cora.nwra.com" target="_blank">orion@cora.nwra.com</a>>> wrote:<br>
><br>
> On 12/16/2014 10:50 AM, Mary Haley wrote:<br>
> > Hi Orion,<br>
> ><br>
> > Sure thing, I just put it on the web:<br>
> ><br>
> ><a href="http://www.pyngl.ucar.edu/Download/files/PyNGL-1.5.0-beta.tar.gz" target="_blank">http://www.pyngl.ucar.edu/Download/files/PyNGL-1.5.0-beta.tar.gz</a><br>
><br>
> One other nit - you should exit with a non-zero value on<br>
> error in setup.py:<br>
><br>
> e.g.:<br>
><br>
> except ImportError:<br>
> print "Error: Cannot import NumPy. Can't continue."<br>
> sys.exit(1)<br>
><br>
> except:<br>
> print "NCARG_ROOT is not set; can't continue!"<br>
> sys.exit(1)<br>
><br>
><br>
> --<br>
> Orion Poplawski<br>
</span>> Technical Manager <a href="tel:303-415-9701%20x222" value="+13034159701" target="_blank">303-415-9701 x222</a> <tel:303-415-9701%20x222><br>
<span>> NWRA, Boulder/CoRA Office FAX: <a href="tel:303-415-9702" value="+13034159702" target="_blank">303-415-9702</a><br>
</span>> <tel:<a href="tel:303-415-9702" value="+13034159702" target="_blank">303-415-9702</a>><br>
> 3380 Mitchell Lane <a href="mailto:orion@nwra.com" target="_blank">orion@nwra.com</a> <mailto:<a href="mailto:orion@nwra.com" target="_blank">orion@nwra.com</a>><br>
<span>> Boulder, CO 80301 <a href="http://www.nwra.com" target="_blank">http://www.nwra.com</a><br>
><br>
><br>
> _______________________________________________<br>
> pyngl-talk mailing list<br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br>
><br>
><br>
><br>
> --<br>
> Sasha<br>
><br>
> _______________________________________________<br>
> pyngl-talk mailing list<br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br>
><br>
<br>
</span>________________________________<br>
<br>
This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error.<br>
<div><div><br>
_______________________________________________<br>
pyngl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
pyngl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Sasha</div></div>
</div>