Skip to content

Work around distutils issues and improve Fugaku install robustness#4

Draft
TokuhisaAtsushi wants to merge 1 commit intohierarchical-inference-20260204from
fix/distutils-workaround-20260227
Draft

Work around distutils issues and improve Fugaku install robustness#4
TokuhisaAtsushi wants to merge 1 commit intohierarchical-inference-20260204from
fix/distutils-workaround-20260227

Conversation

@TokuhisaAtsushi
Copy link
Contributor

@TokuhisaAtsushi TokuhisaAtsushi commented Feb 27, 2026

Summary

  • Fugaku 環境で発生しうる distutils 関連エラー(AttributeError: module 'distutils' has no attribute 'version' など)を回避し、推論/導入手順の堅牢性を改善します。

Changes

  • pyfix/sitecustomize.py を追加し、Python 起動時に distutils.version を読み込むようにしました。
  • inference/worker.sh で PYTHONPATH に pyfix を追加(OpenFoldDir が未定義の場合でも repo 直下の pyfix を拾うフォールバックを追加)。
  • scripts/install_fugaku_others.sh の mpi4py インストール手順を調整(MPICC=mpifcc 指定、--no-build-isolation、pip/setuptools/wheel の pin など)。

Notes

  • これは Fugaku 環境向けの修正です。
  • 確認ずみ(2026/3/5) @/vol0006/ra000018/data/20260227_Openfold-for-Fugaku_test_fix-distutils-workaround-20260227/

English (short)

  • Mitigate distutils-related AttributeError on Fugaku by loading distutils.version via pyfix/sitecustomize.py.
  • Ensure pyfix is picked up in inference/worker.sh via PYTHONPATH (with fallback when OpenFoldDir is unset).
  • Improve mpi4py install robustness in scripts/install_fugaku_others.sh (MPICC=mpifcc, --no-build-isolation, pin pip/setuptools/wheel).
  • Verified (Mach 5, 2026) @vol0006/ra000018/data/20260227_Openfold-for-Fugaku_test_fix-distutils-workaround-20260227/.

@TokuhisaAtsushi TokuhisaAtsushi marked this pull request as draft February 27, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant