[lsst-dm-stack-users] adding a new module to the DMstack installed python

Paul Price price at astro.princeton.edu
Tue Nov 26 11:33:17 PST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/26/2013 01:08 PM, Heather Kelly wrote:
> At SLAC, we have interest in adding sqlalchemy to our python 
> distribution that is installed as part of the DMstack on RHEl5-64.
> 
In true Linux fashion, there's more than one way to do it:

1. Maintain your own python installation, as you said.

2. Use "easy_install" or "pip" or "setup.py" to install the module
into the eups python dir.  Note that the module is then part of that
eups python module (so if you upgrade python, or you haven't "setup
python", then it's not available).

3. Use "easy_install" or "pip" or "setup.py" to install module into
some other dir on your PYTHONPATH.  Then it's always available no
matter what python you're using, but you may have trouble if your
system python and eups python aren't the same minor version (e.g., 2.6
vs 2.7).

4. Manage the module as an eups package.  Install it into the proper
place in the eups tree and give it a eups table file.  This allows
versioning (unlike any of the above methods, unless you're using
virtualenv or similar), and access for multiple people.


P.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSlPd6AAoJEN0xrPHrr10KORwH/0OefLj5YW/ZGwkWT48DNsD4
0ku2s2490tBVcwPl4jA4SvXQAC32x51F/907aEwZr+mUGxSP7NwA1MuTLUP3azN8
MEh0N1IlewdVIPsr919oo3ctyaOfQ75IlRByxJaq0vnKjiEjt8nQB65ePEoGsBDb
oykQnIrXdRkcfbb1IpZCLEb0I9kv/AERFmI4uc5nsbNtbks/nwA9iq7Hko7WTR/o
vtZGrmanFQBMSP4ln0NoNr2gv6JWYSFovPATbRyWRGPf0u6nyn7OUNxHxkd9cSd8
1sn00vIz4OduB4swuAj0AaYC7JlTKgLv9DMIguOXG+UkY3kiWoqubpcsHr9xPwI=
=I5Wv
-----END PGP SIGNATURE-----



More information about the dm-users mailing list