diff --git a/recipe/meta.yaml b/recipe/meta.yaml index ed95759..1a923ee 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -21,7 +21,6 @@ source: - patches/0001-Fix-no-instance-of-constructor-qsim-StateSpaceCUDA-F.patch # [cuda_compiler != "None"] - patches/0002-Remove-PUBLIC-from-target_link_libraries-with-OpenMP.patch # [cuda_compiler != "None"] - patches/0003-Set-pybind11_INCLUDE_DIRS-correctly-for-CUDA.patch # [cuda_compiler != "None"] - - patches/0004-Set-PYTHON_INCLUDE_DIR-in-setup.py.patch - patches/0005-Allow-installing-for-Python-3.12.patch - patches/0006-Set-CUDA_ARCHITECTURES-all-cmake-policy-CMP0104.patch # [cuda_compiler != "None"] - patches/0007-Always-skip-test_cirq_qsim_gpu_amplitudes-because-no.patch # [cuda_compiler != "None"] diff --git a/recipe/patches/0004-Set-PYTHON_INCLUDE_DIR-in-setup.py.patch b/recipe/patches/0004-Set-PYTHON_INCLUDE_DIR-in-setup.py.patch deleted file mode 100644 index 573bc0d..0000000 --- a/recipe/patches/0004-Set-PYTHON_INCLUDE_DIR-in-setup.py.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 12ef16198c3788df61d0de43680eb7c56ddce1d9 Mon Sep 17 00:00:00 2001 -From: Bas Nijholt -Date: Tue, 5 Dec 2023 13:14:23 -0800 -Subject: [PATCH 4/6] Set PYTHON_INCLUDE_DIR in setup.py - -Prevents -``` - CMake Error at /home/bas.nijholt/micromamba/envs/qsim/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message): - Could NOT find PythonLibs (missing: PYTHON_INCLUDE_DIRS) (Required is at - least version "3.7") - Call Stack (most recent call first): - /home/bas.nijholt/micromamba/envs/qsim/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) - /home/bas.nijholt/micromamba/envs/qsim/share/cmake-3.27/Modules/FindPythonLibs.cmake:323 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) - pybind_interface/cuda/CMakeLists.txt:18 (find_package) -``` ---- - setup.py | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/setup.py b/setup.py -index ed4720c..1cb2ec5 100644 ---- a/setup.py -+++ b/setup.py -@@ -4,6 +4,7 @@ import sys - import shutil - import platform - import subprocess -+import sysconfig - - from setuptools import setup, Extension - from setuptools.command.build_ext import build_ext -@@ -38,10 +39,12 @@ class CMakeBuild(build_ext): - - def build_extension(self, ext): - extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name))) -+ python_include_dir = sysconfig.get_path("include") - cmake_args = [ - "-DCMAKE_CUDA_COMPILER=nvcc", - "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + extdir, - "-DPYTHON_EXECUTABLE=" + sys.executable, -+ "-DPYTHON_INCLUDE_DIR=" + python_include_dir, - ] - - cfg = "Debug" if self.debug else "Release" --- -2.43.0 -