Skip to content

Commit

Permalink
https://github.com/inducer/pyopencl/pull/699/files
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 30, 2023
1 parent d159768 commit ac18d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/rpm/patches/pycuda-py3.12.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def get_numpy_incpath():
- from imp import find_module
+ from os.path import join, basename
+ from os.path import join, dirname
# avoid actually importing numpy, it screws up distutils
- file, pathname, descr = find_module("numpy")
- from os.path import join
Expand All @@ -14,7 +14,7 @@
+ file, pathname, descr = find_module("numpy")
+ except ImportError:
+ from importlib import util
+ pathname = basename(util.find_spec("numpy").origin)
+ pathname = dirname(util.find_spec("numpy").origin)
return join(pathname, "core", "include")


0 comments on commit ac18d30

Please sign in to comment.