travis: Add /usr/local/lib/python3/dist-packages/ to PYTHONPATH

and run ldconfig after installing gr-iqbal and gr-osmosdr.

Due to debian-python-install patch [1] the OOT packages are installed in
/usr/local/lib/python3/dist-packages but this path is not in the python3
default search paths (sys.path) and because of this importing OOT
modules fails.

[1] https://salsa.debian.org/bottoms/pkg-gnuradio/blob/25e1de07/debian/patches/debian-python-install

Change-Id: I260c82d1a53dab85f7aac86f23e61309d8841255
This commit is contained in:
Vasil Velichkov 2019-09-09 18:22:55 +03:00 committed by Piotr Krysik
parent 65f95f5ae0
commit 30eb567619
2 changed files with 10 additions and 6 deletions

View File

@ -26,19 +26,21 @@ RUN git clone --branch maint-3.8 --recurse-submodules https://github.com/velichk
mkdir build && \
cd build && \
cmake .. && \
make -j $(nproc) install
make -j $(nproc) install && \
ldconfig
RUN git clone --branch maint-3.8 https://github.com/velichkov/gr-osmosdr && \
cd gr-osmosdr && \
mkdir build && \
cd build && \
cmake .. && \
make -j $(nproc) install
make -j $(nproc) install && \
ldconfig
RUN mkdir /src/build
WORKDIR /src/build
RUN cmake .. && \
RUN PYTHONPATH=/usr/local/lib/python3/dist-packages/:$PYTHONPATH cmake .. && \
# The parallel build sometimes fails when the .grc_gnuradio
# and .gnuradio directories do not exist
mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \

View File

@ -26,18 +26,20 @@ RUN git clone --branch maint-3.8 --recurse-submodules https://github.com/velichk
mkdir build && \
cd build && \
cmake .. && \
make -j $(nproc) install
make -j $(nproc) install && \
ldconfig
RUN git clone --branch maint-3.8 https://github.com/velichkov/gr-osmosdr && \
cd gr-osmosdr && \
mkdir build && \
cd build && \
cmake .. && \
make -j $(nproc) install
make -j $(nproc) install && \
ldconfig
RUN mkdir /src/build
WORKDIR /src/build
RUN cmake .. && \
RUN PYTHONPATH=/usr/local/lib/python3/dist-packages/:$PYTHONPATH cmake .. && \
# The parallel build sometimes fails when the .grc_gnuradio
# and .gnuradio directories do not exist
mkdir $HOME/.grc_gnuradio/ $HOME/.gnuradio/ && \