diff --git a/alibuild.sh b/alibuild.sh index b5a489b84..97c2dba62 100644 --- a/alibuild.sh +++ b/alibuild.sh @@ -18,7 +18,7 @@ prefer_system_check: | SYSTEM_VERSION=$(python3 -c 'import alibuild_helpers; print(alibuild_helpers.__version__)') printf '%s\n%s\n' "$PKGVERSION" "$SYSTEM_VERSION" | sort -V -C prepend_path: - PYTHONPATH: "$ALIBUILD_ROOT/lib/python/site-packages" + PYTHONPATH: "$ALIBUILD_ROOT/lib/python$(python3 -c 'import sysconfig; print(sysconfig.get_python_version())')/site-packages" PATH: "$ALIBUILD_ROOT/bin" --- #!/bin/bash -e @@ -28,8 +28,6 @@ mkdir -p "$TARGET" uv pip install --no-deps --no-cache-dir --target="$TARGET" --python="$(command -v python3)" "alibuild==$PKGVERSION" -ln -snf "python$pyver" "$INSTALLROOT/lib/python" - # Move scripts installed into the target to the bin directory mkdir -p "$INSTALLROOT/bin" mv "$TARGET/bin"/* "$INSTALLROOT/bin/" @@ -38,6 +36,6 @@ mkdir -p "$INSTALLROOT/etc/modulefiles" alibuild-generate-module > "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$INSTALLROOT/etc/modulefiles/$PKGNAME" cat >> "$INSTALLROOT/etc/modulefiles/$PKGNAME" < "$MODULEFILE" cat >> "$MODULEFILE" <>>>>> Found XRootD python bindings: " - LD_LIBRARY_PATH="$INSTALLROOT/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" PYTHONPATH="$INSTALLROOT/lib/python/site-packages${PYTHONPATH:+:}$PYTHONPATH" ${PYTHON_EXECUTABLE} -c 'from XRootD import client as xrd_client;print(f"{xrd_client.__version__}\n{xrd_client.__file__}");' + LD_LIBRARY_PATH="$INSTALLROOT/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" PYTHONPATH="$INSTALLROOT/lib/python${PYTHON_VER}/site-packages${PYTHONPATH:+:}$PYTHONPATH" ${PYTHON_EXECUTABLE} -c 'from XRootD import client as xrd_client;print(f"{xrd_client.__version__}\n{xrd_client.__file__}");' echo fi # end of PYTHON part @@ -108,7 +106,7 @@ alibuild-generate-module --bin --lib > "$MODULEFILE" cat >> "$MODULEFILE" <