8e2691a
From 98a554a8fd0cd440ca69d72999c25909e91f50d0 Mon Sep 17 00:00:00 2001
8e2691a
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
8e2691a
Date: Sun, 25 Feb 2024 14:23:00 -0500
8e2691a
Subject: [PATCH] Adapt numpy_include proxy for Cython 3 by making it an
8e2691a
 os.PathLike
8e2691a
8e2691a
- Fixes #70.
8e2691a
---
8e2691a
 setup.py | 4 ++--
8e2691a
 1 file changed, 2 insertions(+), 2 deletions(-)
8e2691a
8e2691a
diff --git a/setup.py b/setup.py
8e2691a
index 297746d..1a3f829 100644
8e2691a
--- a/setup.py
8e2691a
+++ b/setup.py
8e2691a
@@ -21,9 +21,9 @@
8e2691a
     use_cython = True
8e2691a
 
8e2691a
 
8e2691a
-class numpy_include(object):
8e2691a
+class numpy_include(os.PathLike):
8e2691a
     """Defers import of numpy until install_requires is through"""
8e2691a
-    def __str__(self):
8e2691a
+    def __fspath__(self):
8e2691a
         import numpy
8e2691a
         return numpy.get_include()
8e2691a