python3Packages.ale-py: move postPatch below src (cosmetic)
This commit is contained in:
@@ -43,6 +43,14 @@ buildPythonPackage (finalAttrs: {
|
||||
hash = "sha256-hFbreHk0i4h+JOyvDYcNX3TmwgvxNC5U0l5Xrqqz1zQ=";
|
||||
};
|
||||
|
||||
# disable lto on darwin, cmake cannot find llvm-ar
|
||||
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
substituteInPlace src/ale/CMakeLists.txt \
|
||||
--replace-fail \
|
||||
'set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)' \
|
||||
'set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)'
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
cmake
|
||||
ninja
|
||||
@@ -58,14 +66,6 @@ buildPythonPackage (finalAttrs: {
|
||||
cudaPackages.cuda_nvcc
|
||||
];
|
||||
|
||||
# disable lto on darwin, cmake cannot find llvm-ar
|
||||
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
substituteInPlace src/ale/CMakeLists.txt \
|
||||
--replace-fail \
|
||||
'set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)' \
|
||||
'set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)'
|
||||
'';
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
buildInputs = [
|
||||
@@ -111,7 +111,6 @@ buildPythonPackage (finalAttrs: {
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
#
|
||||
"tests/python/test_atari_vector_xla.py"
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user