fix autoRIFT build on centos7 and conda python 3.8

- build autoRIFT using yum-installed opencv
- fix conda dependency resolution failure
- update SConfigISCE and SConfigISCE.cuda files for python 3.8
- fix CircleCI jobs
LT1AB
Gerald Manipon 2020-08-25 16:59:51 -07:00 committed by piyushrpt
parent 278902fd1b
commit 8f57972eb8
5 changed files with 11 additions and 13 deletions

View File

@ -23,8 +23,8 @@ jobs:
pwd pwd
mkdir config build install mkdir config build install
. /opt/conda/bin/activate root . /opt/conda/bin/activate root
conda install -y cython gdal h5py libgdal pytest numpy fftw scipy scons hdf4 hdf5 netcdf4 libgcc libstdcxx-ng cmake astropy conda install -y cython gdal h5py libgdal pytest numpy fftw scipy scons hdf4 hdf5 libgcc libstdcxx-ng cmake astropy
yum install -y x11-devel motif-devel jq gcc-gfortran yum install -y x11-devel motif-devel jq gcc-gfortran opencv opencv-devel opencv-python
- run: - run:
name: Build and Install ISCE name: Build and Install ISCE
@ -77,8 +77,8 @@ jobs:
pwd pwd
mkdir config build install mkdir config build install
. /opt/conda/bin/activate root . /opt/conda/bin/activate root
conda install --yes cython gdal h5py libgdal pytest numpy fftw scipy scons hdf4 hdf5 netcdf4 libgcc libstdcxx-ng cmake astropy opencv conda install --yes cython gdal h5py libgdal pytest numpy fftw scipy scons hdf4 hdf5 libgcc libstdcxx-ng cmake astropy
yum install -y uuid-devel x11-devel motif-devel jq gcc-gfortran yum install -y uuid-devel x11-devel motif-devel jq gcc-gfortran opencv opencv-devel opencv-python
ln -s /opt/conda/bin/cython /opt/conda/bin/cython3 ln -s /opt/conda/bin/cython /opt/conda/bin/cython3
cd /opt/conda/lib cd /opt/conda/lib
unlink libuuid.so unlink libuuid.so
@ -97,7 +97,7 @@ jobs:
echo "PRJ_SCONS_BUILD = /root/project/build" > SConfigISCE echo "PRJ_SCONS_BUILD = /root/project/build" > SConfigISCE
echo "PRJ_SCONS_INSTALL = /root/project/install/isce" >> SConfigISCE echo "PRJ_SCONS_INSTALL = /root/project/install/isce" >> SConfigISCE
echo "LIBPATH = /usr/lib64 /usr/lib /opt/conda/lib" >> SConfigISCE echo "LIBPATH = /usr/lib64 /usr/lib /opt/conda/lib" >> SConfigISCE
echo "CPPPATH = /opt/conda/include/python3.7m /opt/conda/lib/python3.7/site-packages/numpy/core/include /opt/conda/include /usr/include" >> SConfigISCE echo "CPPPATH = /opt/conda/include/python3.8 /opt/conda/lib/python3.8/site-packages/numpy/core/include /opt/conda/include /usr/include" >> SConfigISCE
echo "FORTRANPATH = /usr/include /opt/conda/include" >> SConfigISCE echo "FORTRANPATH = /usr/include /opt/conda/include" >> SConfigISCE
echo "FORTRAN = /bin/gfortran" >> SConfigISCE echo "FORTRAN = /bin/gfortran" >> SConfigISCE
echo "CC = /bin/gcc" >> SConfigISCE echo "CC = /bin/gcc" >> SConfigISCE

View File

@ -34,12 +34,11 @@ RUN set -ex \
scons \ scons \
hdf4 \ hdf4 \
hdf5 \ hdf5 \
netcdf4 \
libgcc \ libgcc \
libstdcxx-ng \ libstdcxx-ng \
cmake \ cmake \
opencv \
&& yum install -y uuid-devel x11-devel motif-devel jq \ && yum install -y uuid-devel x11-devel motif-devel jq \
opencv opencv-devel opencv-python \
&& ln -sf /opt/conda/bin/cython /opt/conda/bin/cython3 \ && ln -sf /opt/conda/bin/cython /opt/conda/bin/cython3 \
&& mkdir -p /opt/isce2/src && mkdir -p /opt/isce2/src
@ -64,6 +63,7 @@ COPY . /opt/isce2/src/isce2
RUN set -ex \ RUN set -ex \
&& . /opt/conda/bin/activate root \ && . /opt/conda/bin/activate root \
&& cd /opt/isce2/src/isce2 \ && cd /opt/isce2/src/isce2 \
&& tar xvf stanford_components.tgz \
&& source docker/build_env.sh \ && source docker/build_env.sh \
&& mkdir -p $BUILD_DIR \ && mkdir -p $BUILD_DIR \
&& cp docker/SConfigISCE configuration/SConfigISCE \ && cp docker/SConfigISCE configuration/SConfigISCE \
@ -101,7 +101,6 @@ RUN set -ex \
scipy \ scipy \
hdf4 \ hdf4 \
hdf5 \ hdf5 \
netcdf4 \
&& sudo yum update -y \ && sudo yum update -y \
&& sudo yum install -y uuid-devel x11-devel motif-devel gcc-gfortran \ && sudo yum install -y uuid-devel x11-devel motif-devel gcc-gfortran \
&& cd /opt/conda/lib \ && cd /opt/conda/lib \

View File

@ -34,11 +34,11 @@ RUN set -ex \
scons \ scons \
hdf4 \ hdf4 \
hdf5 \ hdf5 \
netcdf4 \
libgcc \ libgcc \
libstdcxx-ng \ libstdcxx-ng \
cmake \ cmake \
&& yum install -y uuid-devel x11-devel motif-devel jq \ && yum install -y uuid-devel x11-devel motif-devel jq \
opencv opencv-devel opencv-python \
&& ln -sf /opt/conda/bin/cython /opt/conda/bin/cython3 \ && ln -sf /opt/conda/bin/cython /opt/conda/bin/cython3 \
&& mkdir -p /opt/isce2/src && mkdir -p /opt/isce2/src
@ -63,13 +63,13 @@ COPY . /opt/isce2/src/isce2
RUN set -ex \ RUN set -ex \
&& . /opt/conda/bin/activate root \ && . /opt/conda/bin/activate root \
&& cd /opt/isce2/src/isce2 \ && cd /opt/isce2/src/isce2 \
&& tar xvf stanford_components.tgz \
&& source docker/build_env.sh \ && source docker/build_env.sh \
&& mkdir -p $BUILD_DIR \ && mkdir -p $BUILD_DIR \
&& cp docker/SConfigISCE.cuda configuration/SConfigISCE \ && cp docker/SConfigISCE.cuda configuration/SConfigISCE \
&& scons install \ && scons install \
&& cp docker/isce_env.sh $ISCE_INSTALL_ROOT \ && cp docker/isce_env.sh $ISCE_INSTALL_ROOT \
&& cd /tmp \ && cd /tmp \
&& rm -rf /opt/isce2/src \
&& mkdir -p /tmp/rpm-build/opt \ && mkdir -p /tmp/rpm-build/opt \
&& mv $ISCE_INSTALL_ROOT /tmp/rpm-build/opt \ && mv $ISCE_INSTALL_ROOT /tmp/rpm-build/opt \
&& curl -s https://api.github.com/repos/$ISCE_ORG/isce2/git/refs/heads/main \ && curl -s https://api.github.com/repos/$ISCE_ORG/isce2/git/refs/heads/main \
@ -101,7 +101,6 @@ RUN set -ex \
scipy \ scipy \
hdf4 \ hdf4 \
hdf5 \ hdf5 \
netcdf4 \
&& sudo yum update -y \ && sudo yum update -y \
&& sudo yum install -y uuid-devel x11-devel motif-devel gcc-gfortran \ && sudo yum install -y uuid-devel x11-devel motif-devel gcc-gfortran \
&& cd /opt/conda/lib \ && cd /opt/conda/lib \

View File

@ -10,7 +10,7 @@ LIBPATH = /usr/lib64 /usr/lib /opt/conda/lib
# The location of Python.h. If you have multiple installations of python # The location of Python.h. If you have multiple installations of python
# make sure that it points to the right one # make sure that it points to the right one
CPPPATH = /opt/conda/include/python3.7m /opt/conda/lib/python3.7/site-packages/numpy/core/include /opt/conda/include /usr/include CPPPATH = /opt/conda/include/python3.8 /opt/conda/lib/python3.8/site-packages/numpy/core/include /opt/conda/include /usr/include
# The location of the fftw3.h (most likely something like /usr/include or # The location of the fftw3.h (most likely something like /usr/include or
# /usr/local/include /opt/local/include # /usr/local/include /opt/local/include

View File

@ -10,7 +10,7 @@ LIBPATH = /usr/lib64 /usr/lib /opt/conda/lib
# The location of Python.h. If you have multiple installations of python # The location of Python.h. If you have multiple installations of python
# make sure that it points to the right one # make sure that it points to the right one
CPPPATH = /opt/conda/include/python3.7m /opt/conda/lib/python3.7/site-packages/numpy/core/include /opt/conda/include /usr/include CPPPATH = /opt/conda/include/python3.8 /opt/conda/lib/python3.8/site-packages/numpy/core/include /opt/conda/include /usr/include
# The location of the fftw3.h (most likely something like /usr/include or # The location of the fftw3.h (most likely something like /usr/include or
# /usr/local/include /opt/local/include # /usr/local/include /opt/local/include