diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bf222f2..3638ffb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -34,7 +34,16 @@ jobs: fi export PATH=$HOME/.local/bin:$PATH python3 -c "import platform, sys; print('[ENV_DEBUG] Platform:', platform.platform(), 'Python:', sys.version)" - python3 -c "import distutils, distutils.cygwinccompiler; print('[ENV_DEBUG] distutils path:', distutils.__file__)" + + # distutils 누락 stub 파일 생성 + DISTUTILS_PATH=$(python3 -c "import distutils, os; print(os.path.dirname(distutils.__file__))") + echo "[ENV_DEBUG] distutils directory: $DISTUTILS_PATH" + touch "$DISTUTILS_PATH/cygwinccompiler.py" + touch "$DISTUTILS_PATH/msvccompiler.py" + + # 임포트 성공 확인 + python3 -c "import distutils, distutils.cygwinccompiler, distutils.msvccompiler; print('[ENV_DEBUG] distutils stub path:', distutils.__file__)" + python3 -m pip install --upgrade pip --user --quiet python3 -m pip install --upgrade --force-reinstall "setuptools==59.6.0" "wheel" "Cython" --user --quiet python3 -c "import setuptools; print('[ENV_DEBUG] installed setuptools:', setuptools.__version__)"