From 701f4bdfd1c9571d62edada3c861d71bd22a75e2 Mon Sep 17 00:00:00 2001 From: Hao Sun <54919134+hsun3163@users.noreply.github.com> Date: Wed, 22 Apr 2026 17:43:24 -0400 Subject: [PATCH] Reinstall preprocessCore without threading on Linux --- pixi-setup.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pixi-setup.sh b/pixi-setup.sh index 68d7c9c..37fac15 100755 --- a/pixi-setup.sh +++ b/pixi-setup.sh @@ -61,6 +61,30 @@ extract_section() { export -f extract_section +repair_preprocesscore_for_sesame() { + if [[ "$OSTYPE" != "linux-gnu"* ]]; then + return 0 + fi + + local rscript="${PIXI_HOME}/envs/r-base/bin/Rscript" + if [ ! -x "${rscript}" ]; then + echo "ERROR: ${rscript} not found after pixi r-base install." >&2 + return 1 + fi + + local ca_bundle="/etc/ssl/certs/ca-certificates.crt" + if [ -f "${ca_bundle}" ]; then + export CURL_CA_BUNDLE="${CURL_CA_BUNDLE:-${ca_bundle}}" + export SSL_CERT_FILE="${SSL_CERT_FILE:-${ca_bundle}}" + fi + + export MAKEFLAGS="${MAKEFLAGS:--j1}" + echo "Reinstalling preprocessCore from source with --disable-threading on Linux ..." + "${rscript}" -e 'stopifnot(requireNamespace("BiocManager", quietly = TRUE), requireNamespace("preprocessCore", quietly = TRUE)); options(repos = BiocManager::repositories()); BiocManager::install("preprocessCore", type = "source", configure.args = "--disable-threading", force = TRUE, update = FALSE, ask = FALSE, Ncpus = 1L)' +} + +export -f repair_preprocesscore_for_sesame + # --- Prompt: installation path --- _default_pixi_home="${HOME}/.pixi" echo "" @@ -140,6 +164,7 @@ else echo "Installing recommended R libraries ..." inject_packages r-base <(extract_section "${_full_file}" "r") + repair_preprocesscore_for_sesame echo "Installing recommended Python packages ..." inject_packages python <(extract_section "${_full_file}" "python")