@@ -12,26 +12,19 @@ yum install -y perl-IPC-Cmd perl-Digest-SHA
1212conan config install " $PACKAGE /ci/conan"
1313
1414# Clone and export libqi to Conan cache.
15- # Possible improvement:
16- # Avoid duplicating the version number here with the version
17- # defined in conanfile.py.
15+ QI_VERSION=$( sed -nE ' /^\s*requires\s*=/,/^\s*]/{ s/\s*"qi\/([^"]+)"/\1/p }' " $PACKAGE /conanfile.py" )
16+
1817GIT_SSL_NO_VERIFY=true \
1918 git clone --depth=1 \
20- --branch qi-framework-v4.0.1 \
19+ --branch " qi-framework-v ${QI_VERSION} " \
2120 " $LIBQI_REPOSITORY_URL " \
2221 /work/libqi
23- conan export /work/libqi --version=4.0.1
22+ conan export /work/libqi --version=" ${QI_VERSION} "
2423
2524# Install dependencies of libqi-python from Conan, including libqi.
26- # Only use the build_type as a variable for the build folder name, so
27- # that the generated CMake preset is named "conan-release".
2825#
2926# Build everything from sources, so that we do not reuse precompiled binaries.
3027# This is because the GLIBC from the manylinux images are often older than the
3128# ones that were used to build the precompiled binaries, which means the binaries
3229# cannot by executed.
33- conan install " $PACKAGE " \
34- --build=" *" \
35- -c tools.build:skip_test=true \
36- -c tools.cmake.cmaketoolchain:generator=Ninja \
37- -c tools.cmake.cmake_layout:build_folder_vars=[\" settings.build_type\" ]
30+ conan install " $PACKAGE " --build=" *"
0 commit comments