mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
scikit-learn: fix i686 build failures
Currently i686 builds fail because a couple of doctests fail. The values are correct, but the dtype is missing. This commit disables doctests.
This commit is contained in:
parent
0392197226
commit
46e51883d8
@ -12460,6 +12460,13 @@ let
|
||||
buildInputs = with self; [ nose pillow pkgs.gfortran pkgs.glibcLocales ];
|
||||
propagatedBuildInputs = with self; [ numpy scipy pkgs.openblas ];
|
||||
|
||||
# doctests fail on i686
|
||||
# https://github.com/NixOS/nixpkgs/issues/9472
|
||||
# https://github.com/scikit-learn/scikit-learn/issues/5177
|
||||
patchPhase = ''
|
||||
substituteInPlace setup.cfg --replace 'with-doctest = 1' 'with-doctest = 0'
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
${self.python.executable} setup.py build_ext -i --fcompiler='gnu95'
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user