[pyngl-talk] pyngl 1.5.0 source

Oleksandr Huziy guziy.sasha at gmail.com
Sat Dec 27 10:44:42 MST 2014


Hi Mary:

I am not a pip expert but what I know is:

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...(
https://github.com/guziy/pylibrmn/blob/master/setup.py)

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 ....
https://github.com/Unidata/netcdf4-python

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...

Cheers







2014-12-27 11:44 GMT-05:00 Mary Haley <haley at ucar.edu>:

> Hi all,
>
> 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.
>
> 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.
>
> 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.
>
> The packages that are required include:
>
> cairo
> curl
> esmf
> expat
> freetype
> g2clib
> gdal
> hdf
> hdf5
> hdfeos
> hdfeos5
> jasper
> jpeg
> libpng
> libxml2
> netcdf
> pixman
> pkg-config
> proj
> szip
> udunits
> zlib
>
>
> 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.
>
> 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.
>
> Thanks for the discussion!
>
> --Mary
>
>
> On Thu, Dec 18, 2014 at 7:42 AM, Root, Benjamin <broot at aer.com> wrote:
>
>> +1 for posting to github or any one of the other code collaboration
>> sites like gitlab, sourceforge (which supports both svn and git), etc.
>>
>> Same thing, if possible, for PyNIO, please? One of the biggest barriers
>> for me recommending PyNIO to others has been the lack of the ability to
>> do "pip install pynio".
>>
>> Cheers!
>> Ben Root
>>
>> On Wed 17 Dec 2014 05:15:41 PM EST, Radovan Bast wrote:
>> > +1
>> > i wanted to ask the exact same question almost the exact same moment.
>> > i think PyNGL is a great code and i believe it would greatly benefit
>> > to be placed under GitHub, then everybody could submit patches
>> > and it would be less work for Mary et al.
>> > best greetings,
>> >   radovan
>> >
>> > On Wed, Dec 17, 2014 at 10:26 PM, Oleksandr Huziy
>> > <guziy.sasha at gmail.com <mailto:guziy.sasha at gmail.com>> wrote:
>> >
>> >     Is there a reason why you are not putting it on github?
>> >
>> >     Cheers
>> >
>> >     2014-12-17 15:59 GMT-05:00 Mary Haley <haley at ucar.edu
>> >     <mailto:haley at ucar.edu>>:
>> >
>> >         Thanks Orion, I'll take a look at the code and implement these
>> >         changes.
>> >
>> >         --Mary
>> >
>> >
>> >         On Tue, Dec 16, 2014 at 3:32 PM, Orion Poplawski
>> >         <orion at cora.nwra.com <mailto:orion at cora.nwra.com>> wrote:
>> >
>> >             On 12/16/2014 10:50 AM, Mary Haley wrote:
>> >             > Hi Orion,
>> >             >
>> >             > Sure thing, I just put it on the web:
>> >             >
>> >             >
>> http://www.pyngl.ucar.edu/Download/files/PyNGL-1.5.0-beta.tar.gz
>> >
>> >             One other nit - you should exit with a non-zero value on
>> >             error in setup.py:
>> >
>> >             e.g.:
>> >
>> >             except ImportError:
>> >               print "Error: Cannot import NumPy. Can't continue."
>> >               sys.exit(1)
>> >
>> >             except:
>> >               print "NCARG_ROOT is not set; can't continue!"
>> >               sys.exit(1)
>> >
>> >
>> >             --
>> >             Orion Poplawski
>> >             Technical Manager 303-415-9701 x222
>> <tel:303-415-9701%20x222>
>> >             NWRA, Boulder/CoRA Office             FAX: 303-415-9702
>> >             <tel:303-415-9702>
>> >             3380 Mitchell Lane orion at nwra.com <mailto:orion at nwra.com>
>> >             Boulder, CO 80301 http://www.nwra.com
>> >
>> >
>> >         _______________________________________________
>> >         pyngl-talk mailing list
>> >         List instructions, subscriber options, unsubscribe:
>> >         http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>> >
>> >
>> >
>> >     --
>> >     Sasha
>> >
>> >     _______________________________________________
>> >     pyngl-talk mailing list
>> >     List instructions, subscriber options, unsubscribe:
>> >     http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>> >
>>
>> ________________________________
>>
>> 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.
>>
>> _______________________________________________
>> pyngl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>>
>
>
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>
>


-- 
Sasha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20141227/c6ddf202/attachment.html 


More information about the pyngl-talk mailing list