<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">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;</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&#39;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&#39;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&#39;t clash with other packages.  This means we can&#39;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&#39;t build my other packages with this compiler. I realize there&#39;s probably a way to customize conda so that it uses a newer compiler, but I haven&#39;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&#39;s more than one way to do this, but it&#39;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">&lt;<a href="mailto:broot@aer.com" target="_blank">broot@aer.com</a>&gt;</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 &quot;pip install pynio&quot;.<br>
<br>
Cheers!<br>
Ben Root<br>
<span><br>
On Wed 17 Dec 2014 05:15:41 PM EST, Radovan Bast wrote:<br>
&gt; +1<br>
&gt; i wanted to ask the exact same question almost the exact same moment.<br>
&gt; i think PyNGL is a great code and i believe it would greatly benefit<br>
&gt; to be placed under GitHub, then everybody could submit patches<br>
&gt; and it would be less work for Mary et al.<br>
&gt; best greetings,<br>
&gt;   radovan<br>
&gt;<br>
&gt; On Wed, Dec 17, 2014 at 10:26 PM, Oleksandr Huziy<br>
</span><span>&gt; &lt;<a href="mailto:guziy.sasha@gmail.com" target="_blank">guziy.sasha@gmail.com</a> &lt;mailto:<a href="mailto:guziy.sasha@gmail.com" target="_blank">guziy.sasha@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Is there a reason why you are not putting it on github?<br>
&gt;<br>
&gt;     Cheers<br>
&gt;<br>
&gt;     2014-12-17 15:59 GMT-05:00 Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a><br>
</span>&gt;     &lt;mailto:<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;&gt;:<br>
<span>&gt;<br>
&gt;         Thanks Orion, I&#39;ll take a look at the code and implement these<br>
&gt;         changes.<br>
&gt;<br>
&gt;         --Mary<br>
&gt;<br>
&gt;<br>
&gt;         On Tue, Dec 16, 2014 at 3:32 PM, Orion Poplawski<br>
</span><span>&gt;         &lt;<a href="mailto:orion@cora.nwra.com" target="_blank">orion@cora.nwra.com</a> &lt;mailto:<a href="mailto:orion@cora.nwra.com" target="_blank">orion@cora.nwra.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;             On 12/16/2014 10:50 AM, Mary Haley wrote:<br>
&gt;             &gt; Hi Orion,<br>
&gt;             &gt;<br>
&gt;             &gt; Sure thing, I just put it on the web:<br>
&gt;             &gt;<br>
&gt;             &gt;<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>
&gt;<br>
&gt;             One other nit - you should exit with a non-zero value on<br>
&gt;             error in setup.py:<br>
&gt;<br>
&gt;             e.g.:<br>
&gt;<br>
&gt;             except ImportError:<br>
&gt;               print &quot;Error: Cannot import NumPy. Can&#39;t continue.&quot;<br>
&gt;               sys.exit(1)<br>
&gt;<br>
&gt;             except:<br>
&gt;               print &quot;NCARG_ROOT is not set; can&#39;t continue!&quot;<br>
&gt;               sys.exit(1)<br>
&gt;<br>
&gt;<br>
&gt;             --<br>
&gt;             Orion Poplawski<br>
</span>&gt;             Technical Manager <a href="tel:303-415-9701%20x222" value="+13034159701" target="_blank">303-415-9701 x222</a> &lt;tel:303-415-9701%20x222&gt;<br>
<span>&gt;             NWRA, Boulder/CoRA Office             FAX: <a href="tel:303-415-9702" value="+13034159702" target="_blank">303-415-9702</a><br>
</span>&gt;             &lt;tel:<a href="tel:303-415-9702" value="+13034159702" target="_blank">303-415-9702</a>&gt;<br>
&gt;             3380 Mitchell Lane <a href="mailto:orion@nwra.com" target="_blank">orion@nwra.com</a> &lt;mailto:<a href="mailto:orion@nwra.com" target="_blank">orion@nwra.com</a>&gt;<br>
<span>&gt;             Boulder, CO 80301 <a href="http://www.nwra.com" target="_blank">http://www.nwra.com</a><br>
&gt;<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         pyngl-talk mailing list<br>
&gt;         List instructions, subscriber options, unsubscribe:<br>
&gt;         <a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     Sasha<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     pyngl-talk mailing list<br>
&gt;     List instructions, subscriber options, unsubscribe:<br>
&gt;     <a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/pyngl-talk</a><br>
&gt;<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>