anchor.diff:      && make clean \
       && (cd && PYTHONPATH=/usr/local/lib/python python3 -c "import astrometry; print(astrometry.__version__)")
   
  -RUN pip3 --no-cache-dir install cython
  +RUN pip --no-cache-dir install cython
   
   # The Tractor
   RUN git clone http://github.com/dstndstn/tractor.git tractor \
  
positive.code:     libeigen3-dev \
      libgoogle-glog-dev \
      libceres-dev \
      python3 \
      python3-dev \
      python3-pip \
      python3-pil \
      python3-tk \
      # # Remove APT files
      && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  
  RUN echo "../site-packages" > /usr/local/lib/python3.5/dist-packages/site-packages.pth
  
  # Pip installs -- binary
  RUN for x in \
      setuptools \
      wheel \
      intel-numpy \
      intel-scipy \
      psycopg2-binary \
      matplotlib \
      astropy \
      zmq \
      ; do pip3 --no-cache-dir install $x; done
  
  # ugly: Tractor's mp_fourier module detects the $CC='icc' exactly
  # These are in /opt/intel/bin, which is on the PATH.
  
negative.code:   && python -c "from astropy.coordinates import EarthLocation, SkyCoord, AltAz; from astropy.time import Time; print(EarthLocation.of_site('ctio')); print(SkyCoord(180.,-45.,unit='deg').transform_to(AltAz(obstime=Time(56806.0, format='mjd'), location=EarthLocation.of_site('ctio'))))"
  
  # Patch astropy:
  # ADD urlmap-readonly.patch /tmp/
  # RUN cd /usr/local/lib/python3.5/dist-packages && \
  #     patch -p1 < /tmp/urlmap-readonly.patch
  
  # Alternatively, could retrieve
  #   http://data.astropy.org/coordinates/sites.json
  