Skip to content

Commit

Permalink
boost: build Python numpy extension by default
Browse files Browse the repository at this point in the history
In order to manipulate Python arrays numpy is needed from boost 1.65 on.
http://www.boost.org/users/history/version_1_65_1.html
  • Loading branch information
tristan0x authored and FRidh committed Dec 12, 2017
1 parent a1471bb commit 19dbfb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/libraries/boost/1.65.nix
Expand Up @@ -9,4 +9,6 @@ callPackage ./generic.nix (args // rec {
sha256 = "9807a5d16566c57fd74fb522764e0b134a8bbe6b6e8967b83afefd30dcd3be81";
};

enableNumpy = true;

})
4 changes: 2 additions & 2 deletions pkgs/development/libraries/boost/generic.nix
Expand Up @@ -10,7 +10,7 @@
, enablePIC ? false
, enableExceptions ? false
, enablePython ? hostPlatform == buildPlatform
, enableNumpy ? false, numpy ? null
, enableNumpy ? false
, taggedLayout ? ((enableRelease && enableDebug) || (enableSingleThreaded && enableMultiThreaded) || (enableShared && enableStatic))
, patches ? null
, mpi ? null
Expand Down Expand Up @@ -156,7 +156,7 @@ stdenv.mkDerivation {
++ optional (hostPlatform == buildPlatform) icu
++ optional stdenv.isDarwin fixDarwinDylibNames
++ optional enablePython python
++ optional enableNumpy numpy;
++ optional enableNumpy python.pkgs.numpy;

configureScript = "./bootstrap.sh";
configureFlags = commonConfigureFlags
Expand Down

0 comments on commit 19dbfb6

Please sign in to comment.