Skip to content

Instantly share code, notes, and snippets.

@mjuric
Last active May 31, 2017 18:37
Show Gist options
  • Save mjuric/1e097f2781bc503954c6 to your computer and use it in GitHub Desktop.
Save mjuric/1e097f2781bc503954c6 to your computer and use it in GitHub Desktop.
Installing the LSST stack with conda

Conda packaged binaries of the LSST software stack

Video tutorial?

Click here.

Installing and using

No root privileges are required to install or use this code.

If you're using Anaconda (or Miniconda) Python distribution, you should be able to install the LSST stack by doing the following:

	conda update conda	# to ensure you’re running latest conda

	conda config --add channels http://research.majuric.org/conda/stable
	
	conda install lsst-distrib

This will install the LSST packages in your $CONDA_ROOT/opt/lsst. To "activate" them (i.e., get them onto your PATH, etc.), run:

	source eups-setups.sh
	setup <name_of_the_package>

where <name_of_the_package> can be learned from the LSST stack documentation.

What's available

We have all lsst_distrib and lsst_sims packages (including MAF). qserv is not yet available as a conda package.

Binary compatibility

  • These binaries should work on:
  • OS X 10.9 and 10.10
  • Any Linux newer than CentOS 5 (glibc 2.5 or later)
    • In particular, they've been known to work on the Edison cluster at NERSC
  • They will not work on OS X 10.11 (El Capitan)

Authors and support

The packaging code has been developed by Mario Juric (@mjuric), with patches contributed and builds performed by Lynne Jones (@rhiannonlynne), Scott Daniel (@danielsf), Rahul Biswas, and Michael Reuter (@mareuter).

@bmorris3
Copy link

Is there any way to do this without root access? I'm trying to install on my department workstation.

@mjuric
Copy link
Author

mjuric commented Nov 5, 2015

Sorry for the late reply -- I didn't see the comment!

The answer is yes, this will all work w/o root. I typically install Miniconda (and therefore the stack) into my home directory.

@RobertLuptonTheGood
Copy link

If these questions are answered somewhere, please point me at the documentation!

What exactly does this install? conda list lists lots of packages, but I can't see any top-level package (such as lsst_apps).

What should I setup to use all the binary-installed packages? How do I use eups or conda to list the ones that were just installed?

@mjuric
Copy link
Author

mjuric commented Apr 14, 2016

Sorry @rhl, didn't see this (gist comments don't trigger notifications -- see: isaacs/github#21).

To answer your questions:

What exactly does this install?

All of lsst_distrib, the S15 release. The version numbers are slightly mangled compared to EUPS versions (prefixed with a 0.).

conda list lists lots of packages, but I can't see any top-level package (such as lsst_apps).

They should all be there, with underscores turned into dashes and with an lsst- prefix. Try doing conda list lsst-apps. The name mangling has been done to make the names more along the lines of what conda users expect.

Once installed, EUPS still refers to them by their EUPS names (so you'd do setup lsst_apps). I agree it's confusing, but the trajectory is to remove the need for setup all together.

What should I setup to use all the binary-installed packages?

See the instructions above:

source eups-setups.sh
setup <name_of_the_package>

where <name_of_the_package> is it's EUPS name.

How do I use eups or conda to list the ones that were just installed?
eups list for the former, conda list for the latter.

Btw., since this build was made (6+ months ago (this is the S15 release)), the stack has advanced a lot. You may care instead about more recent monthlies. @danielsf has been building those on the http://eupsforge.net/conda/dev channel (he's been building lsst-sims and lsst-apps). See https://confluence.lsstcorp.org/display/SIM/Catalogs+and+MAF for instructions on installing those (they're basically the same as this gist, except that the channel URL is different).

@rhiannonlynne
Copy link

Hi Mario,

Can you please edit or remove this gist? It's out of date, the conda channels have changed, and while there is one final conda distribution available, SQUaRE is not planning on releasing any future conda installations.

Lynne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment