Cannot install sklearn >=1.5 on windows with python 3.13

### Describe the bug

Started testing in CI over OS with python 3.13 and it seems I am getting some errors when it comes to installing sklearn on windows.

### Steps/Code to Reproduce

This is the github action I used. 

```yml
    name: test install win 3.13
    
    on:
        push:
            branches:
            -   main
        pull_request:
            branches:
            -   '*'
    
    # Force to use color
    env:
        FORCE_COLOR: true
    
    jobs:
        test_and_coverage:
            name: 'Test with ${{ matrix.py }} on ${{ matrix.os }} with sklearn ${{ matrix.sklearn }}'
            runs-on: ${{ matrix.os }}
            strategy:
                fail-fast: false
                matrix:
                    py: ['3.13']
                    os: [windows-latest]
                    sklearn : ["1.4.0", "1.5.0", "1.5.2"]
            steps:
                -   uses: actions/checkout@v4
                -   name: Setup python
                    uses: actions/setup-python@v5
                    with:
                        python-version: ${{ matrix.py }}
                        allow-prereleases: true
                -   run: pip install scikit-learn==${{ matrix.sklearn }}

```

### Expected Results

for sklearn to install on windows with python 3.13

### Actual Results

This is one of the CI log.

I created a dummy repo to test this.

Here is the action run: https://github.com/Remi-Gau/win_sklearn_py313/actions/runs/11104304353/job/30848089467

<details>
<summary>CI log</summary>
<pre>
2024-09-30T10:31:31.8084262Z Current runner version: '2.319.1'
2024-09-30T10:31:31.8104584Z ##[group]Operating System
2024-09-30T10:31:31.8105083Z Microsoft Windows Server 2022
2024-09-30T10:31:31.8105512Z 10.0.20348
2024-09-30T10:31:31.8105806Z Datacenter
2024-09-30T10:31:31.8106099Z ##[endgroup]
2024-09-30T10:31:31.8106417Z ##[group]Runner Image
2024-09-30T10:31:31.8106768Z Image: windows-2022
2024-09-30T10:31:31.8107072Z Version: 20240922.1.0
2024-09-30T10:31:31.8107948Z Included Software: https://github.com/actions/runner-images/blob/win22/20240922.1/images/windows/Windows2022-Readme.md
2024-09-30T10:31:31.8109209Z Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20240922.1
2024-09-30T10:31:31.8109969Z ##[endgroup]
2024-09-30T10:31:31.8110291Z ##[group]Runner Image Provisioner
2024-09-30T10:31:31.8110708Z 2.0.384.1
2024-09-30T10:31:31.8110960Z ##[endgroup]
2024-09-30T10:31:31.8124248Z ##[group]GITHUB_TOKEN Permissions
2024-09-30T10:31:31.8125890Z Contents: read
2024-09-30T10:31:31.8126293Z Metadata: read
2024-09-30T10:31:31.8126615Z Packages: read
2024-09-30T10:31:31.8126940Z ##[endgroup]
2024-09-30T10:31:31.8129590Z Secret source: Actions
2024-09-30T10:31:31.8130079Z Prepare workflow directory
2024-09-30T10:31:31.8922769Z Prepare all required actions
2024-09-30T10:31:31.9080427Z Getting action download info
2024-09-30T10:31:32.1527669Z Download action repository 'actions/checkout@v4' (SHA:692973e3d937129bcbf40652eb9f2f61becf3332)
2024-09-30T10:31:32.3322746Z Download action repository 'actions/setup-python@v5' (SHA:f677139bbe7f9c59b41e40162b753c062f5d49a3)
2024-09-30T10:31:32.5972710Z Complete job name: Test with 3.13 on windows-latest with sklearn 1.5.0
2024-09-30T10:31:32.6983185Z ##[group]Run actions/checkout@v4
2024-09-30T10:31:32.6983680Z with:
2024-09-30T10:31:32.6984044Z   repository: Remi-Gau/win_sklearn_py313
2024-09-30T10:31:32.6984641Z   token: ***
2024-09-30T10:31:32.6984907Z   ssh-strict: true
2024-09-30T10:31:32.6985183Z   ssh-user: git
2024-09-30T10:31:32.6985482Z   persist-credentials: true
2024-09-30T10:31:32.6985798Z   clean: true
2024-09-30T10:31:32.6986082Z   sparse-checkout-cone-mode: true
2024-09-30T10:31:32.6986459Z   fetch-depth: 1
2024-09-30T10:31:32.6986713Z   fetch-tags: false
2024-09-30T10:31:32.6986998Z   show-progress: true
2024-09-30T10:31:32.6987279Z   lfs: false
2024-09-30T10:31:32.6987519Z   submodules: false
2024-09-30T10:31:32.6987819Z   set-safe-directory: true
2024-09-30T10:31:32.6988126Z env:
2024-09-30T10:31:32.6988341Z   FORCE_COLOR: true
2024-09-30T10:31:32.6988611Z ##[endgroup]
2024-09-30T10:31:33.2101977Z Syncing repository: Remi-Gau/win_sklearn_py313
2024-09-30T10:31:33.2128696Z ##[group]Getting Git version info
2024-09-30T10:31:33.2130118Z Working directory is 'D:\a\win_sklearn_py313\win_sklearn_py313'
2024-09-30T10:31:33.3988253Z [command]"C:\Program Files\Git\bin\git.exe" version
2024-09-30T10:31:33.4587106Z git version 2.46.1.windows.1
2024-09-30T10:31:33.4684582Z ##[endgroup]
2024-09-30T10:31:33.4705787Z Temporarily overriding HOME='D:\a\_temp\75c52066-541d-4249-ba41-d5fe4f716bd5' before making global git config changes
2024-09-30T10:31:33.4707190Z Adding repository directory to the temporary git global config as a safe directory
2024-09-30T10:31:33.4716734Z [command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\win_sklearn_py313\win_sklearn_py313
2024-09-30T10:31:33.5224179Z Deleting the contents of 'D:\a\win_sklearn_py313\win_sklearn_py313'
2024-09-30T10:31:33.5229406Z ##[group]Initializing the repository
2024-09-30T10:31:33.5239496Z [command]"C:\Program Files\Git\bin\git.exe" init D:\a\win_sklearn_py313\win_sklearn_py313
2024-09-30T10:31:33.5814021Z Initialized empty Git repository in D:/a/win_sklearn_py313/win_sklearn_py313/.git/
2024-09-30T10:31:33.5855234Z [command]"C:\Program Files\Git\bin\git.exe" remote add origin https://github.com/Remi-Gau/win_sklearn_py313
2024-09-30T10:31:33.6354969Z ##[endgroup]
2024-09-30T10:31:33.6355530Z ##[group]Disabling automatic garbage collection
2024-09-30T10:31:33.6364218Z [command]"C:\Program Files\Git\bin\git.exe" config --local gc.auto 0
2024-09-30T10:31:33.6582331Z ##[endgroup]
2024-09-30T10:31:33.6583332Z ##[group]Setting up auth
2024-09-30T10:31:33.6596553Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand
2024-09-30T10:31:33.6813647Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\""
2024-09-30T10:31:34.8317357Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-09-30T10:31:34.8531971Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\""
2024-09-30T10:31:35.2355917Z [command]"C:\Program Files\Git\bin\git.exe" config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ***"
2024-09-30T10:31:35.2591881Z ##[endgroup]
2024-09-30T10:31:35.2592476Z ##[group]Fetching the repository
2024-09-30T10:31:35.2606749Z [command]"C:\Program Files\Git\bin\git.exe" -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +e2c0325fdc4946b36e3e13079dcffe1b3b4db659:refs/remotes/origin/main
2024-09-30T10:31:36.7288512Z From https://github.com/Remi-Gau/win_sklearn_py313
2024-09-30T10:31:36.7587599Z  * [new ref]         e2c0325fdc4946b36e3e13079dcffe1b3b4db659 -> origin/main
2024-09-30T10:31:36.7590641Z ##[endgroup]
2024-09-30T10:31:36.7591305Z ##[group]Determining the checkout info
2024-09-30T10:31:36.7591795Z ##[endgroup]
2024-09-30T10:31:36.7600992Z [command]"C:\Program Files\Git\bin\git.exe" sparse-checkout disable
2024-09-30T10:31:36.7892683Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset-all extensions.worktreeConfig
2024-09-30T10:31:36.8104214Z ##[group]Checking out the ref
2024-09-30T10:31:36.8113368Z [command]"C:\Program Files\Git\bin\git.exe" checkout --progress --force -B main refs/remotes/origin/main
2024-09-30T10:31:36.8533757Z branch 'main' set up to track 'origin/main'.
2024-09-30T10:31:36.8538106Z Switched to a new branch 'main'
2024-09-30T10:31:36.8562436Z ##[endgroup]
2024-09-30T10:31:36.8842999Z [command]"C:\Program Files\Git\bin\git.exe" log -1 --format='%H'
2024-09-30T10:31:36.9036453Z 'e2c0325fdc4946b36e3e13079dcffe1b3b4db659'
2024-09-30T10:31:36.9461649Z ##[group]Run actions/setup-python@v5
2024-09-30T10:31:36.9462101Z with:
2024-09-30T10:31:36.9462405Z   python-version: 3.13
2024-09-30T10:31:36.9462706Z   allow-prereleases: true
2024-09-30T10:31:36.9463030Z   check-latest: false
2024-09-30T10:31:36.9463523Z   token: ***
2024-09-30T10:31:36.9463780Z   update-environment: true
2024-09-30T10:31:36.9464083Z env:
2024-09-30T10:31:36.9464330Z   FORCE_COLOR: true
2024-09-30T10:31:36.9464594Z ##[endgroup]
2024-09-30T10:31:37.1544002Z ##[group]Installed versions
2024-09-30T10:31:37.1622891Z Version ~3.13.0-0 was not found in the local cache
2024-09-30T10:31:37.8497909Z Version ~3.13.0-0 is available for downloading
2024-09-30T10:31:37.8498845Z Download from "https://github.com/actions/python-versions/releases/download/3.13.0-rc.2-10765745850/python-3.13.0-rc.2-win32-x64.zip"
2024-09-30T10:31:38.4914728Z Extract downloaded archive
2024-09-30T10:31:38.5763682Z [command]"C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('D:\a\_temp\python-3.13.0-rc.2-win32-x64.zip', 'D:\a\_temp\7efb5bb3-aa3a-469d-a552-11936f4e68a0', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath 'D:\a\_temp\python-3.13.0-rc.2-win32-x64.zip' -DestinationPath 'D:\a\_temp\7efb5bb3-aa3a-469d-a552-11936f4e68a0' -Force } else { throw $_ } } ;"
2024-09-30T10:31:39.0654810Z Execute installation script
2024-09-30T10:31:39.4570334Z Check if Python hostedtoolcache folder exist...
2024-09-30T10:31:39.4571563Z 
2024-09-30T10:31:39.4594383Z Check if current Python version is installed...
2024-09-30T10:31:39.4595492Z 
2024-09-30T10:31:39.4663124Z No Python3.13.* found
2024-09-30T10:31:39.4664377Z 
2024-09-30T10:31:39.4670219Z Remove registry entries for Python 3.13(x64)...
2024-09-30T10:31:39.4671613Z 
2024-09-30T10:31:40.3503241Z Create Python 3.13.0-rc.2 folder in C:\hostedtoolcache\windows\Python
2024-09-30T10:31:40.3504393Z 
2024-09-30T10:31:40.3544614Z Copy Python binaries to C:\hostedtoolcache\windows\Python\3.13.0-rc.2\x64
2024-09-30T10:31:40.3545949Z 
2024-09-30T10:31:40.3674411Z Install Python 3.13.0-rc.2 in C:\hostedtoolcache\windows\Python...
2024-09-30T10:31:40.3676501Z 
2024-09-30T10:32:09.9264043Z Create python3 symlink
2024-09-30T10:32:09.9264668Z 
2024-09-30T10:32:09.9450497Z 
2024-09-30T10:32:09.9452207Z 
2024-09-30T10:32:09.9455364Z Directory: C:\hostedtoolcache\windows\Python\3.13.0-rc.2\x64
2024-09-30T10:32:09.9456005Z 
2024-09-30T10:32:09.9468907Z Mode                 LastWriteTime         Length Name
2024-09-30T10:32:09.9474044Z ----                 -------------         ------ ----
2024-09-30T10:32:09.9485456Z -a---l         9/30/2024  10:32 AM              0 python3.exe
2024-09-30T10:32:09.9491095Z Install and upgrade Pip
2024-09-30T10:32:09.9493067Z 
2024-09-30T10:32:12.3187676Z Looking in links: c:\Users\RUNNER~1\AppData\Local\Temp\tmp89lysasg
2024-09-30T10:32:12.3192578Z Requirement already satisfied: pip in c:\hostedtoolcache\windows\python\3.13.0-rc.2\x64\lib\site-packages (24.2)
2024-09-30T10:32:13.7336254Z Collecting pip
2024-09-30T10:32:13.7542729Z Downloading pip-24.2-py3-none-any.whl.metadata (3.6 kB)
2024-09-30T10:32:13.7748839Z Downloading pip-24.2-py3-none-any.whl (1.8 MB)
2024-09-30T10:32:13.7766732Z 
2024-09-30T10:32:13.7767156Z ----------------------------------------
2024-09-30T10:32:13.7767824Z 0.0/1.8 MB ?
2024-09-30T10:32:13.7768351Z eta -:--:--
2024-09-30T10:32:13.8338797Z 
2024-09-30T10:32:13.8338938Z 
2024-09-30T10:32:13.8341623Z ---------------------------------------- 1.8/1.8 MB
2024-09-30T10:32:13.8342224Z 33.2 MB/s eta 0:00:00
2024-09-30T10:32:13.8626359Z Installing collected packages: pip
2024-09-30T10:32:13.8630459Z Attempting uninstall: pip
2024-09-30T10:32:13.8663124Z Found existing installation: pip 24.2
2024-09-30T10:32:13.9484736Z Uninstalling pip-24.2:
2024-09-30T10:32:13.9625386Z Successfully uninstalled pip-24.2
2024-09-30T10:32:15.8415952Z Successfully installed pip-24.2
2024-09-30T10:32:16.1307050Z Create complete file
2024-09-30T10:32:16.1307394Z 
2024-09-30T10:32:16.1319364Z 
2024-09-30T10:32:16.1319875Z 
2024-09-30T10:32:16.1534779Z Successfully set up CPython (3.13.0-rc.2)
2024-09-30T10:32:16.1535763Z ##[endgroup]
2024-09-30T10:32:16.1756832Z ##[group]Run pip install scikit-learn==1.5.0
2024-09-30T10:32:16.1757325Z [36;1mpip install scikit-learn==1.5.0[0m
2024-09-30T10:32:16.1792715Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2024-09-30T10:32:16.1793157Z env:
2024-09-30T10:32:16.1793364Z   FORCE_COLOR: true
2024-09-30T10:32:16.1793742Z   pythonLocation: C:\hostedtoolcache\windows\Python\3.13.0-rc.2\x64
2024-09-30T10:32:16.1794338Z   PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.13.0-rc.2\x64/lib/pkgconfig
2024-09-30T10:32:16.1794936Z   Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.13.0-rc.2\x64
2024-09-30T10:32:16.1795464Z   Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.13.0-rc.2\x64
2024-09-30T10:32:16.1795981Z   Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.13.0-rc.2\x64
2024-09-30T10:32:16.1796364Z ##[endgroup]
2024-09-30T10:32:17.8703744Z Collecting scikit-learn==1.5.0
2024-09-30T10:32:17.9651780Z   Downloading scikit_learn-1.5.0.tar.gz (7.8 MB)
2024-09-30T10:32:18.1742926Z      ---------------------------------------- 0.0/7.8 MB ? eta -:--:--
2024-09-30T10:32:18.3852639Z      ---------------- ----------------------- 3.1/7.8 MB 17.7 MB/s eta 0:00:01
2024-09-30T10:32:18.5677588Z      -------------------------------- ------- 6.3/7.8 MB 15.2 MB/s eta 0:00:01
2024-09-30T10:32:18.5679624Z      ---------------------------------------- 7.8/7.8 MB 13.0 MB/s eta 0:00:00
2024-09-30T10:32:20.3462695Z   Installing build dependencies: started
2024-09-30T10:32:40.9510240Z   Installing build dependencies: finished with status 'done'
2024-09-30T10:32:40.9524558Z   Getting requirements to build wheel: started
2024-09-30T10:32:41.1255771Z   Getting requirements to build wheel: finished with status 'done'
2024-09-30T10:32:41.1284146Z   Installing backend dependencies: started
2024-09-30T10:32:42.7304008Z   Installing backend dependencies: finished with status 'done'
2024-09-30T10:32:42.7320236Z   Preparing metadata (pyproject.toml): started
2024-09-30T10:33:42.8038997Z   Preparing metadata (pyproject.toml): still running...
2024-09-30T10:33:56.5428856Z   Preparing metadata (pyproject.toml): finished with status 'error'
2024-09-30T10:33:56.5492328Z   error: subprocess-exited-with-error
2024-09-30T10:33:56.5492924Z   
2024-09-30T10:33:56.5493488Z   Preparing metadata (pyproject.toml) did not run successfully.
2024-09-30T10:33:56.5494202Z   exit code: 1
2024-09-30T10:33:56.5494554Z   
2024-09-30T10:33:56.5494882Z   [156 lines of output]
2024-09-30T10:33:56.5499137Z   + meson setup C:\Users\runneradmin\AppData\Local\Temp\pip-install-1asfnt_f\scikit-learn_c45356ed885846faa7bddbb9f9d26314 C:\Users\runneradmin\AppData\Local\Temp\pip-install-1asfnt_f\scikit-learn_c45356ed885846faa7bddbb9f9d26314\.mesonpy-hj2wtmv9 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\runneradmin\AppData\Local\Temp\pip-install-1asfnt_f\scikit-learn_c45356ed885846faa7bddbb9f9d26314\.mesonpy-hj2wtmv9\meson-python-native-file.ini
2024-09-30T10:33:56.5503061Z   The Meson build system
2024-09-30T10:33:56.5503492Z   Version: 1.5.2
2024-09-30T10:33:56.5504748Z   Source dir: C:\Users\runneradmin\AppData\Local\Temp\pip-install-1asfnt_f\scikit-learn_c45356ed885846faa7bddbb9f9d26314
2024-09-30T10:33:56.5506950Z   Build dir: C:\Users\runneradmin\AppData\Local\Temp\pip-install-1asfnt_f\scikit-learn_c45356ed885846faa7bddbb9f9d26314\.mesonpy-hj2wtmv9
2024-09-30T10:33:56.5508268Z   Build type: native build
2024-09-30T10:33:56.5508812Z   Project name: scikit-learn
2024-09-30T10:33:56.5509262Z   Project version: 1.5.0
2024-09-30T10:33:56.5510359Z   C compiler for the host machine: gcc (gcc 12.2.0 "gcc (x86_64-posix-seh-rev2, Built by MinGW-W64 project) 12.2.0")
2024-09-30T10:33:56.5511468Z   C linker for the host machine: gcc ld.bfd 2.39
2024-09-30T10:33:56.5512715Z   C++ compiler for the host machine: c++ (gcc 12.2.0 "c++ (x86_64-posix-seh-rev2, Built by MinGW-W64 project) 12.2.0")
2024-09-30T10:33:56.5513832Z   C++ linker for the host machine: c++ ld.bfd 2.39
2024-09-30T10:33:56.5516761Z   Cython compiler for the host machine: cython (cython 3.0.11)
2024-09-30T10:33:56.5517626Z   Host machine cpu family: x86_64
2024-09-30T10:33:56.5518125Z   Host machine cpu: x86_64
2024-09-30T10:33:56.5518915Z   Compiler for C supports arguments -Wno-unused-but-set-variable: YES
2024-09-30T10:33:56.5519900Z   Compiler for C supports arguments -Wno-unused-function: YES
2024-09-30T10:33:56.5520808Z   Compiler for C supports arguments -Wno-conversion: YES
2024-09-30T10:33:56.5521767Z   Compiler for C supports arguments -Wno-misleading-indentation: YES
2024-09-30T10:33:56.5522493Z   Library m found: YES
2024-09-30T10:33:56.5523338Z   Program python found: YES (C:\hostedtoolcache\windows\Python\3.13.0-rc.2\x64\python.exe)
2024-09-30T10:33:56.5524325Z   Run-time dependency OpenMP for c found: YES 4.5
2024-09-30T10:33:56.5525057Z   Run-time dependency python found: YES 3.13
2024-09-30T10:33:56.5525819Z   Build targets in project: 111
2024-09-30T10:33:56.5526252Z   
2024-09-30T10:33:56.5526600Z   scikit-learn 1.5.0
2024-09-30T10:33:56.5526971Z   
2024-09-30T10:33:56.5527265Z     User defined options
2024-09-30T10:33:56.5528886Z       Native files: C:\Users\runneradmin\AppData\Local\Temp\pip-install-1asfnt_f\scikit-learn_c45356ed885846faa7bddbb9f9d26314\.mesonpy-hj2wtmv9\meson-python-native-file.ini
2024-09-30T10:33:56.5530409Z       buildtype   : release
2024-09-30T10:33:56.5531110Z       b_ndebug    : if-release
2024-09-30T10:33:56.5531495Z       b_vscrt     : md
2024-09-30T10:33:56.5531708Z   
2024-09-30T10:33:56.5532918Z   Found ninja.EXE-1.11.1.git.kitware.jobserver-1 at C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-2p_66gx2\normal\Scripts\ninja.EXE
2024-09-30T10:33:56.5534219Z   + meson compile
2024-09-30T10:33:56.5534848Z   [1/249] Generating sklearn/write_built_with_meson_file with a custom command
2024-09-30T10:33:56.5535431Z   [2/249] Generating sklearn/_loss/_loss_pyx with a custom command
2024-09-30T10:33:56.5536198Z   [3/249] Copying file sklearn/_loss/_loss.pxd
2024-09-30T10:33:56.5536784Z   [4/249] Copying file sklearn/__init__.py
2024-09-30T10:33:56.5537372Z   [5/249] Copying file sklearn/utils/__init__.py
2024-09-30T10:33:56.5538026Z   [6/249] Copying file sklearn/utils/_cython_blas.pxd
2024-09-30T10:33:56.5538646Z   [7/249] Copying file sklearn/utils/_openmp_helpers.pxd
2024-09-30T10:33:56.5539139Z   [8/249] Copying file sklearn/utils/_heap.pxd
2024-09-30T10:33:56.5539748Z   [9/249] Copying file sklearn/utils/_random.pxd
2024-09-30T10:33:56.5540368Z   [10/249] Copying file sklearn/utils/_sorting.pxd
2024-09-30T10:33:56.5541020Z   [11/249] Copying file sklearn/utils/_typedefs.pxd
2024-09-30T10:33:56.5541811Z   [12/249] Generating sklearn/utils/_seq_dataset_pxd with a custom command
2024-09-30T10:33:56.5542410Z   [13/249] Generating sklearn/utils/_seq_dataset_pyx with a custom command
2024-09-30T10:33:56.5544135Z   [14/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/__check_build/_check_build.pyx
2024-09-30T10:33:56.5546015Z   [15/249] Generating sklearn/utils/_weight_vector_pxd with a custom command
2024-09-30T10:33:56.5546641Z   [16/249] Copying file sklearn/utils/_vector_sentinel.pxd
2024-09-30T10:33:56.5547521Z   [17/249] Generating sklearn/utils/_weight_vector_pyx with a custom command
2024-09-30T10:33:56.5548362Z   [18/249] Copying file sklearn/metrics/__init__.py
2024-09-30T10:33:56.5549798Z   [19/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/_isotonic.pyx
2024-09-30T10:33:56.5552401Z   [20/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/_cython_blas.pyx
2024-09-30T10:33:56.5555629Z   [21/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/arrayfuncs.pyx
2024-09-30T10:33:56.5558207Z   [22/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/sparsefuncs_fast.pyx
2024-09-30T10:33:56.5560413Z   [23/249] Compiling C object sklearn/__check_build/_check_build.cp313-win_amd64.pyd.p/meson-generated_sklearn___check_build__check_build.pyx.c.obj
2024-09-30T10:33:56.5562075Z   [24/249] Linking target sklearn/__check_build/_check_build.cp313-win_amd64.pyd
2024-09-30T10:33:56.5562820Z   [25/249] Compiling Cython source sklearn/_loss/_loss.pyx
2024-09-30T10:33:56.5564436Z   [26/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/murmurhash.pyx
2024-09-30T10:33:56.5566710Z   [27/249] Compiling C object sklearn/_isotonic.cp313-win_amd64.pyd.p/meson-generated_sklearn__isotonic.pyx.c.obj
2024-09-30T10:33:56.5569001Z   [28/249] Linking target sklearn/_isotonic.cp313-win_amd64.pyd
2024-09-30T10:33:56.5570228Z   [29/249] Compiling C object sklearn/utils/arrayfuncs.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils_arrayfuncs.pyx.c.obj
2024-09-30T10:33:56.5571733Z   [30/249] Linking target sklearn/utils/arrayfuncs.cp313-win_amd64.pyd
2024-09-30T10:33:56.5573063Z   [31/249] Compiling C++ object sklearn/utils/murmurhash.cp313-win_amd64.pyd.p/src_MurmurHash3.cpp.obj
2024-09-30T10:33:56.5574858Z   [32/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/_fast_dict.pyx
2024-09-30T10:33:56.5577240Z   [33/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/_openmp_helpers.pyx
2024-09-30T10:33:56.5578966Z   [34/249] Compiling C object sklearn/utils/murmurhash.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils_murmurhash.pyx.c.obj
2024-09-30T10:33:56.5580486Z   [35/249] Linking target sklearn/utils/murmurhash.cp313-win_amd64.pyd
2024-09-30T10:33:56.5581680Z   [36/249] Compiling C object sklearn/utils/_openmp_helpers.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__openmp_helpers.pyx.c.obj
2024-09-30T10:33:56.5583742Z   [37/249] Compiling C object sklearn/utils/_cython_blas.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__cython_blas.pyx.c.obj
2024-09-30T10:33:56.5584959Z   [38/249] Linking target sklearn/utils/_cython_blas.cp313-win_amd64.pyd
2024-09-30T10:33:56.5585982Z   [39/249] Linking target sklearn/utils/_openmp_helpers.cp313-win_amd64.pyd
2024-09-30T10:33:56.5587895Z   [40/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/_random.pyx
2024-09-30T10:33:56.5590285Z   [41/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/_typedefs.pyx
2024-09-30T10:33:56.5592746Z   [42/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/_heap.pyx
2024-09-30T10:33:56.5594779Z   [43/249] Compiling C object sklearn/utils/_heap.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__heap.pyx.c.obj
2024-09-30T10:33:56.5595972Z   [44/249] Linking target sklearn/utils/_heap.cp313-win_amd64.pyd
2024-09-30T10:33:56.5597463Z   [45/249] Compiling C++ object sklearn/utils/_fast_dict.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__fast_dict.pyx.cpp.obj
2024-09-30T10:33:56.5599332Z   sklearn/utils/_fast_dict.cp313-win_amd64.pyd.p/sklearn/utils/_fast_dict.pyx.cpp: In function 'PyObject* __Pyx_Import(PyObject*, PyObject*, int)':
2024-09-30T10:33:56.5601694Z   sklearn/utils/_fast_dict.cp313-win_amd64.pyd.p/sklearn/utils/_fast_dict.pyx.cpp:26264:48: warning: comparing the result of pointer addition '(((const char*)"sklearn.utils._fast_dict") + 7)' and NULL [-Waddress]
2024-09-30T10:33:56.5604091Z   26264 |             if (strchr(__Pyx_MODULE_NAME, '.') != NULL) {
2024-09-30T10:33:56.5604665Z         |                                                ^
2024-09-30T10:33:56.5605574Z   [46/249] Compiling C object sklearn/utils/sparsefuncs_fast.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils_sparsefuncs_fast.pyx.c.obj
2024-09-30T10:33:56.5608053Z   [47/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/_sorting.pyx
2024-09-30T10:33:56.5609531Z   [48/249] Linking target sklearn/utils/sparsefuncs_fast.cp313-win_amd64.pyd
2024-09-30T10:33:56.5610609Z   [49/249] Linking target sklearn/utils/_fast_dict.cp313-win_amd64.pyd
2024-09-30T10:33:56.5611992Z   [50/249] Compiling C object sklearn/utils/_sorting.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__sorting.pyx.c.obj
2024-09-30T10:33:56.5613045Z   [51/249] Linking target sklearn/utils/_sorting.cp313-win_amd64.pyd
2024-09-30T10:33:56.5615157Z   [52/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/_vector_sentinel.pyx
2024-09-30T10:33:56.5616605Z   [53/249] Compiling C object sklearn/utils/_typedefs.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__typedefs.pyx.c.obj
2024-09-30T10:33:56.5618729Z   [54/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/utils/_isfinite.pyx
2024-09-30T10:33:56.5620741Z   [55/249] Compiling C object sklearn/utils/_random.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__random.pyx.c.obj
2024-09-30T10:33:56.5622167Z   [56/249] Linking target sklearn/utils/_typedefs.cp313-win_amd64.pyd
2024-09-30T10:33:56.5623006Z   [57/249] Compiling Cython source sklearn/utils/_seq_dataset.pyx
2024-09-30T10:33:56.5623592Z   [58/249] Linking target sklearn/utils/_random.cp313-win_amd64.pyd
2024-09-30T10:33:56.5624364Z   [59/249] Generating sklearn/metrics/_dist_metrics_pxd with a custom command
2024-09-30T10:33:56.5625418Z   [60/249] Generating sklearn/metrics/_dist_metrics_pyx with a custom command
2024-09-30T10:33:56.5626399Z   [61/249] Compiling Cython source sklearn/utils/_weight_vector.pyx
2024-09-30T10:33:56.5627494Z   [62/249] Compiling C++ object sklearn/utils/_vector_sentinel.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__vector_sentinel.pyx.cpp.obj
2024-09-30T10:33:56.5629437Z   In file included from ..\..\..\pip-build-env-2p_66gx2\overlay\Lib\site-packages\numpy\_core\include/numpy/ndarraytypes.h:1909,
2024-09-30T10:33:56.5631051Z                    from ..\..\..\pip-build-env-2p_66gx2\overlay\Lib\site-packages\numpy\_core\include/numpy/ndarrayobject.h:12,
2024-09-30T10:33:56.5632814Z                    from ..\..\..\pip-build-env-2p_66gx2\overlay\Lib\site-packages\numpy\_core\include/numpy/arrayobject.h:5,
2024-09-30T10:33:56.5634230Z                    from sklearn/utils/_vector_sentinel.cp313-win_amd64.pyd.p/sklearn/utils/_vector_sentinel.pyx.cpp:1239:
2024-09-30T10:33:56.5637580Z   ..\..\..\pip-build-env-2p_66gx2\overlay\Lib\site-packages\numpy\_core\include/numpy/npy_1_7_deprecated_api.h:15:77: note: '#pragma message: ..\..\..\pip-build-env-2p_66gx2\overlay\Lib\site-packages\numpy\_core\include/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION'
2024-09-30T10:33:56.5640493Z      15 |                          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION")
2024-09-30T10:33:56.5641109Z         |                                                                             ^
2024-09-30T10:33:56.5642194Z   In file included from ..\..\..\pip-build-env-2p_66gx2\overlay\Lib\site-packages\numpy\_core\include/numpy/ufuncobject.h:4,
2024-09-30T10:33:56.5644058Z                    from sklearn/utils/_vector_sentinel.cp313-win_amd64.pyd.p/sklearn/utils/_vector_sentinel.pyx.cpp:1243:
2024-09-30T10:33:56.5645902Z   ..\..\..\pip-build-env-2p_66gx2\overlay\Lib\site-packages\numpy\_core\include/numpy/npy_math.h: In function 'npy_longdouble npy_creall(npy_clongdouble)':
2024-09-30T10:33:56.5648574Z   ..\..\..\pip-build-env-2p_66gx2\overlay\Lib\site-packages\numpy\_core\include/numpy/npy_math.h:422:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
2024-09-30T10:33:56.5649925Z     422 |     return ((longdouble_t *) &z)[0];
2024-09-30T10:33:56.5650465Z         |            ~^~~~~~~~~~~~~~~~~~~~
2024-09-30T10:33:56.5652051Z   sklearn/utils/_vector_sentinel.cp313-win_amd64.pyd.p/sklearn/utils/_vector_sentinel.pyx.cpp: In function 'PyObject* __Pyx_Import(PyObject*, PyObject*, int)':
2024-09-30T10:33:56.5654433Z   sklearn/utils/_vector_sentinel.cp313-win_amd64.pyd.p/sklearn/utils/_vector_sentinel.pyx.cpp:14776:48: warning: comparing the result of pointer addition '(((const char*)"sklearn.utils._vector_sentinel") + 7)' and NULL [-Waddress]
2024-09-30T10:33:56.5656350Z   14776 |             if (strchr(__Pyx_MODULE_NAME, '.') != NULL) {
2024-09-30T10:33:56.5656767Z         |                                                ^
2024-09-30T10:33:56.5658936Z   sklearn/utils/_vector_sentinel.cp313-win_amd64.pyd.p/sklearn/utils/_vector_sentinel.pyx.cpp: In function 'PyTypeObject* __Pyx_ImportType_3_0_11(PyObject*, const char*, const char*, size_t, size_t, __Pyx_ImportType_CheckSize_3_0_11)':
2024-09-30T10:33:56.5661491Z   sklearn/utils/_vector_sentinel.cp313-win_amd64.pyd.p/sklearn/utils/_vector_sentinel.pyx.cpp:15803:24: warning: unknown conversion type character 'z' in format [-Wformat=]
2024-09-30T10:33:56.5663126Z   15803 |             "Expected %zd from C header, got %zd from PyObject",
2024-09-30T10:33:56.5663557Z         |                        ^
2024-09-30T10:33:56.5665113Z   sklearn/utils/_vector_sentinel.cp313-win_amd64.pyd.p/sklearn/utils/_vector_sentinel.pyx.cpp:15803:47: warning: unknown conversion type character 'z' in format [-Wformat=]
2024-09-30T10:33:56.5666759Z   15803 |             "Expected %zd from C header, got %zd from PyObject",
2024-09-30T10:33:56.5667505Z         |                                               ^
2024-09-30T10:33:56.5669301Z   sklearn/utils/_vector_sentinel.cp313-win_amd64.pyd.p/sklearn/utils/_vector_sentinel.pyx.cpp:15802:13: warning: too many arguments for format [-Wformat-extra-args]
2024-09-30T10:33:56.5670949Z   15802 |             "%s.%s size changed, may indicate binary incompatibility. "
2024-09-30T10:33:56.5671520Z         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-09-30T10:33:56.5672264Z   15803 |             "Expected %zd from C header, got %zd from PyObject",
2024-09-30T10:33:56.5673130Z         |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-09-30T10:33:56.5674254Z   [63/249] Linking target sklearn/utils/_vector_sentinel.cp313-win_amd64.pyd
2024-09-30T10:33:56.5675247Z   [64/249] Compiling Cython source sklearn/metrics/_dist_metrics.pyx
2024-09-30T10:33:56.5676347Z   warning: sklearn\metrics\_dist_metrics.pyx:846:44: Assigning to 'float64_t *' from 'const float64_t *' discards const qualifier
2024-09-30T10:33:56.5678227Z   warning: sklearn\metrics\_dist_metrics.pyx:909:40: Assigning to 'float64_t *' from 'const float64_t *' discards const qualifier
2024-09-30T10:33:56.5680312Z   warning: sklearn\metrics\_dist_metrics.pyx:3426:44: Assigning to 'float32_t *' from 'const float32_t *' discards const qualifier
2024-09-30T10:33:56.5681518Z   
2024-09-30T10:33:56.5682632Z   warning: sklearn\metrics\_dist_metrics.pyx:3489:40: Assigning to 'float32_t *' from 'const float32_t *' discards const qualifier
2024-09-30T10:33:56.5683638Z   
2024-09-30T10:33:56.5684415Z   [65/249] Compiling C object sklearn/utils/_seq_dataset.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__seq_dataset.pyx.c.obj
2024-09-30T10:33:56.5686584Z   [66/249] Compiling C object sklearn/utils/_isfinite.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__isfinite.pyx.c.obj
2024-09-30T10:33:56.5688811Z   [67/249] Compiling C object sklearn/utils/_weight_vector.cp313-win_amd64.pyd.p/meson-generated_sklearn_utils__weight_vector.pyx.c.obj
2024-09-30T10:33:56.5691307Z   [68/249] Compiling Cython source C:/Users/runneradmin/AppData/Local/Temp/pip-install-1asfnt_f/scikit-learn_c45356ed885846faa7bddbb9f9d26314/sklearn/metrics/_pairwise_fast.pyx
2024-09-30T10:33:56.5693165Z   [69/249] Linking target sklearn/utils/_seq_dataset.cp313-win_amd64.pyd
2024-09-30T10:33:56.5694205Z   [70/249] Linking target sklearn/utils/_isfinite.cp313-win_amd64.pyd
2024-09-30T10:33:56.5695259Z   [71/249] Linking target sklearn/utils/_weight_vector.cp313-win_amd64.pyd
2024-09-30T10:33:56.5696129Z   [72/249] Generating sklearn/metrics/_pairwise_distances_reduction/_datasets_pair_pxd with a custom command
2024-09-30T10:33:56.5697624Z   [73/249] Generating sklearn/metrics/_pairwise_distances_reduction/_datasets_pair_pyx with a custom command
2024-09-30T10:33:56.5699256Z   [74/249] Generating sklearn/metrics/_pairwise_distances_reduction/_base_pxd with a custom command
2024-09-30T10:33:56.5700200Z   [75/249] Generating sklearn/metrics/_pairwise_distances_reduction/_base_pyx with a custom command
2024-09-30T10:33:56.5701583Z   [76/249] Generating sklearn/metrics/_pairwise_distances_reduction/_middle_term_computer_pxd with a custom command
2024-09-30T10:33:56.5704533Z   [77/249] Copying file sklearn/metrics/_pairwise_distanninja: error: mkdir(sklearn/metrics/_pairwise_distances_reduction/_datasets_pair.cp313-win_amd64.pyd.p/sklearn/metrics/_pairwise_distances_reduction): No such file or directory
2024-09-30T10:33:56.5706087Z   ces_reduction/_classmode.pxd
2024-09-30T10:33:56.5706841Z   [78/249] Copying file sklearn/metrics/_pairwise_distances_reduction/__init__.py
2024-09-30T10:33:56.5707641Z   ninja: build stopped: .
2024-09-30T10:33:56.5708034Z   INFO: autodetecting backend as ninja
2024-09-30T10:33:56.5709263Z   INFO: calculating backend command to run: C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-2p_66gx2\normal\Scripts\ninja.EXE
2024-09-30T10:33:56.5710691Z   [end of output]
2024-09-30T10:33:56.5711022Z   
2024-09-30T10:33:56.5711684Z   note: This error originates from a subprocess, and is likely not a problem with pip.
2024-09-30T10:33:56.7399063Z error: metadata-generation-failed
2024-09-30T10:33:56.7399480Z 
2024-09-30T10:33:56.7399772Z Encountered error while generating package metadata.
2024-09-30T10:33:56.7400442Z 
2024-09-30T10:33:56.7400606Z See above for output.
2024-09-30T10:33:56.7400971Z 
2024-09-30T10:33:56.7401337Z note: This is an issue with the package mentioned above, not pip.
2024-09-30T10:33:56.7402028Z hint: See above for details.
2024-09-30T10:33:58.4766179Z ##[error]Process completed with exit code 1.
2024-09-30T10:33:58.4943443Z Post job cleanup.
2024-09-30T10:33:58.7509315Z [command]"C:\Program Files\Git\bin\git.exe" version
2024-09-30T10:33:58.7738525Z git version 2.46.1.windows.1
2024-09-30T10:33:58.7803270Z Temporarily overriding HOME='D:\a\_temp\e502ae36-cf5c-4949-b19b-1df4fa342ad5' before making global git config changes
2024-09-30T10:33:58.7804220Z Adding repository directory to the temporary git global config as a safe directory
2024-09-30T10:33:58.7814730Z [command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\win_sklearn_py313\win_sklearn_py313
2024-09-30T10:33:58.8061367Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand
2024-09-30T10:33:58.8277954Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\""
2024-09-30T10:33:59.2551500Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-09-30T10:33:59.2757216Z http.https://github.com/.extraheader
2024-09-30T10:33:59.2798139Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset-all http.https://github.com/.extraheader
2024-09-30T10:33:59.3032411Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\""
2024-09-30T10:33:59.7266700Z Cleaning up orphan processes

</pre>
</details>

### Versions

```shell
Tested with sklearn 1.4, 1.5, 1.5.2
Only versions >= 1.5 fail.
```

COMMENT:
Just a FYI, the CPython 3.13 release is going to be postponed by a week (scheduled October 7th right now), see [schedule](https://peps.python.org/pep-0719/#schedule) and [this](https://discuss.python.org/t/incremental-gc-and-pushing-back-the-3-13-0-release/65285) for more background.

Labels: Build / CI