Update installation authored by Eva Schiffer's avatar Eva Schiffer
......@@ -34,3 +34,54 @@ This will create an Anaconda environment called "glance" that can be used to run
~~~~
source activate glance
~~~~
If you need a developer installation of Glance, you will follow most of the same instructions as above, but you will also need to be able to use git on the command line.
Replace the final "python -m easy_install ..." command in the installation instructions above with:
~~~~
(cd to the directory where you want the Glance code installed)
git clone git@gitlab.ssec.wisc.edu:evas/UW-Glance.git
cd ./UW-Glance/pyglance
python setup.py develop
~~~~
<h3>Installing with Minimal Dependencies Using Pip</h3>
(Developed and tested on Ubuntu 16.04 by Alan De Smet, July 2016)
This installs all functionality, including "glance gui", but relying on no "big packages" like SSEC SB3-hhg or Anaconda. It uses virtualenv to collect Python dependencies locally. Python dependencies are installed directly via pip. pyqt4 cannot be installed via pip, and is generally a pain in the ass, so we rely on the Linux distribution to provide it.
You will need development libraries for libpng, libfreetype, libgeos, and pyqt4. You will also need Python's virtualenv and pip.
Ubuntu 16.04 installation of the dependencies:
~~~~
sudo apt-get install libpng-dev libfreetype6-dev pyqt4-dev-tools libgeos-dev virtualenv python-pip
# Ubuntu has problem with the libgeos library's name
cd /usr/lib/x86_64-linux-gnu
sudo ln -s libgeos-3.5.0.so libgeos.so
~~~~
Glance installation:
~~~~
# Use system-site-packages to use distribution's pyqt4
virtualenv --system-site-packages glance
cd glance
source bin/activate
pip install scipy matplotlib pillow
# Not available via PyPI
pip install https://github.com/matplotlib/basemap/archive/v1.0.7rel.tar.gz
pip install http://larch.ssec.wisc.edu/eggs/repos/uwglance/uwglance-0.3.2.tar.gz
~~~~
If you want to do development on Glance, skip the "pip install ...uwglance..." step and instead:
~~~~
git clone https://github.com/evas-ssec/uwglance.git
cd uwglance/pyglance
python setup.py develop
~~~~