Blame 0005-Disable-pyinstall.patch

67b3300
From c15b406e3ca409795affef95f1faab7a6a48443e Mon Sep 17 00:00:00 2001
67b3300
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
67b3300
Date: Sun, 5 Apr 2020 12:31:39 +0100
67b3300
Subject: [PATCH 5/5] Disable pyinstall
67b3300
67b3300
---
67b3300
 pysteps/CMakeLists.txt | 23 -----------------------
67b3300
 1 file changed, 23 deletions(-)
67b3300
67b3300
diff --git a/pysteps/CMakeLists.txt b/pysteps/CMakeLists.txt
67b3300
index de83408..f018ba0 100644
67b3300
--- a/pysteps/CMakeLists.txt
67b3300
+++ b/pysteps/CMakeLists.txt
67b3300
@@ -54,28 +54,5 @@ set_target_properties(cysteps
67b3300
                                  OUTPUT_NAME
67b3300
                                  ${cymodname})
67b3300
 
67b3300
-# Pure python package
67b3300
-add_custom_target(steps_package_pure_py ALL
67b3300
-                  DEPENDS ${steps_package_timestamp}) # random file bridging
67b3300
-                                                      # target->command
67b3300
-add_custom_command(OUTPUT ${steps_package_timestamp}
67b3300
-                   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
67b3300
-                   COMMAND ${PYTHON_EXECUTABLE} ${setup_py} build
67b3300
-                           --build-base=${CMAKE_BINARY_DIR} install
67b3300
-                           --install-lib "${libdir}"
67b3300
-                           --no-compile
67b3300
-                           --force
67b3300
-                   COMMAND ${CMAKE_COMMAND} -E touch ${steps_package_timestamp}
67b3300
-                           # setup.py already tracks changed .py files. We set
67b3300
-                           # DEPENDS just to set the order: copy .py after
67b3300
-                           # building the lib
67b3300
-                   DEPENDS cysteps)
67b3300
-
67b3300
 # Install compiled lib
67b3300
 install(TARGETS cysteps LIBRARY DESTINATION "${PYTHON_INSTALL_PREFIX}/steps/")
67b3300
-
67b3300
-# Install python package, from cmake_setup.py
67b3300
-install(
67b3300
-  CODE
67b3300
-  "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${setup_py} build --build-base=${CMAKE_BINARY_DIR} install --install-lib=${PYTHON_INSTALL_PREFIX} --force WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})"
67b3300
-  )
67b3300
-- 
67b3300
2.26.0
67b3300