Closed StrikerRUS closed 2 years ago
scikit-learn 1.0.2 was released Dec 25, 2021. That release helps to make all our CI jobs green except windows-latest, Python 3.10 (x86)
because there is no wheel for 32-bit Windows: https://pypi.org/project/scikit-learn/#files.
Corresponding sources: https://github.com/scikit-learn/scikit-learn/blob/9aff4def9890819556e3d32c8ca6b2f27b528c22/.github/workflows/wheels.yml#L69-L81
Neither numpy
, nor scipy
has cp310-win32
wheels:
https://pypi.org/project/numpy/#files
https://pypi.org/project/scipy/#files
Should we also stop trying to build 32-bit Windows with new Python versions? Or is there any other ideas?
OK, I think this PR is ready for review.
Building
scikit-learn
from sources doesn't work for Windows. There is along log
``` Collecting scikit-learn Downloading scikit-learn-1.0.1.tar.gz (6.6 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error' ERROR: Command errored out with exit status 1: command: 'C:\hostedtoolcache\windows\Python\3.10.0\x64\python.exe' 'C:\hostedtoolcache\windows\Python\3.10.0\x64\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\RUNNER~1\AppData\Local\Temp\tmp6coo4zsn' cwd: C:\Users\runneradmin\AppData\Local\Temp\pip-install-20bdprht\scikit-learn_a886946a27414c489b1d781f7aac08cf Complete output (71 lines): Partial import of sklearn during the build process. C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-3vn4pl57\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py:528: UserWarning: Fallback spawn triggered. Please update distutils monkeypatch. warnings.warn( Traceback (most recent call last): File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-3vn4pl57\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 522, in _fallback_spawn yield bag File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-3vn4pl57\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 510, in spawn return super().spawn(cmd, env=env) File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-3vn4pl57\overlay\Lib\site-packages\numpy\distutils\ccompiler.py", line 88, infor the error.
Pining
setuptools
version as it was suggested in https://github.com/pypa/distutils/issues/15 doesn't work (one more upstream issue: https://github.com/pypa/setuptools/issues/2372). So let's just try to wait forscikit-learn
wheel for Python 3.10.