anchor.diff:  RUN for x in \
       photutils \
       fitsio==0.9.12 \
  -    ; do pip3 --no-cache-dir install $x; done
  +    ; do pip --no-cache-dir install $x; done
   
   ENV PYTHON python3
   ENV PYTHON_CONFIG python3-config
  
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: #     && rm /usr/local/lib/python/tractor/dense_optimizer.cpython-35m-x86_64-linux-gnu.so \
  #     && cp tractor/dense_optimizer.py /usr/local/lib/python/tractor
  
  RUN python -O -m compileall \
      -x lib2to3 \
      /usr/local/lib/python \
      /opt/conda/lib/python3.7 \
      /src/unwise_psf/py \
      /src/legacypipe/py/{legacypipe,legacyzpts} && \
      python    -m compileall \
      -x lib2to3 \
      /usr/local/lib/python \
      /opt/conda/lib/python3.7 \
      /src/unwise_psf/py \
      /src/legacypipe/py/{legacypipe,legacyzpts}
  
  # update legacypipe
  #RUN cd /src/legacypipe && git pull && git describe && echo 1 \
  #    && python    -m compileall /src/legacypipe/py/{legacypipe,legacyzpts} \
  #    && python -O -m compileall /src/legacypipe/py/{legacypipe,legacyzpts}
  