Merge pull request #46053 from danieldk/mxnet-fixes
pythonPackages.mxnet: fix build
This commit is contained in:
commit
bf2a90298a
@ -34,11 +34,14 @@ stdenv.mkDerivation rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace 3rdparty/mkldnn/tests/CMakeLists.txt \
|
substituteInPlace 3rdparty/mkldnn/tests/CMakeLists.txt \
|
||||||
--replace "/bin/bash" "${bash}/bin/bash"
|
--replace "/bin/bash" "${bash}/bin/bash"
|
||||||
|
|
||||||
|
# Build against the system version of OpenMP.
|
||||||
|
# https://github.com/apache/incubator-mxnet/pull/12160
|
||||||
|
rm -rf 3rdparty/openmp
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
postInstall = ''
|
||||||
install -Dm755 libmxnet.so $out/lib/libmxnet.so
|
rm "$out"/lib/*.a
|
||||||
cp -r ../include $out
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -1788,6 +1788,13 @@ in {
|
|||||||
|
|
||||||
doCheck = !isPy3k;
|
doCheck = !isPy3k;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace python/setup.py \
|
||||||
|
--replace "graphviz<0.9.0" "graphviz<0.10.0" \
|
||||||
|
--replace "numpy<=1.15.0" "numpy<1.16.0" \
|
||||||
|
--replace "requests<2.19.0" "requests<2.20.0"
|
||||||
|
'';
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cd python
|
cd python
|
||||||
'';
|
'';
|
||||||
@ -7937,11 +7944,11 @@ in {
|
|||||||
|
|
||||||
graphviz = buildPythonPackage rec {
|
graphviz = buildPythonPackage rec {
|
||||||
name = "graphviz-${version}";
|
name = "graphviz-${version}";
|
||||||
version = "0.5.2";
|
version = "0.9";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "mirror://pypi/g/graphviz/${name}.zip";
|
url = "mirror://pypi/g/graphviz/${name}.zip";
|
||||||
sha256 = "0jh31nlm0qbxwylhdkwnb69pcjlc5z03fcfbs0gvgzp3hfrngsk0";
|
sha256 = "14r9brj4r31b3qy1nnn34v3l4h0n39bqxg9sn2fz4p3pp5mglnl6";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pkgs.graphviz ];
|
propagatedBuildInputs = [ pkgs.graphviz ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user