Skip to content

Commit 84edd9f

Browse files
mayeutmattip
authored andcommitted
add helpers
1 parent b840e12 commit 84edd9f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

local/openblas/__init__.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
import os
1+
from pathlib import Path
2+
23
from . import _init_openblas
34

5+
6+
_HERE = Path(__file__).resolve().parent
7+
8+
49
# Use importlib.metadata to single-source the version
510

611
try:
@@ -17,3 +22,15 @@
1722
__version__ = "0.0.0"
1823

1924
openblas_config = _init_openblas.get_config()
25+
26+
27+
def get_include_dir():
28+
return str(_HERE / "include")
29+
30+
31+
def get_lib_dir():
32+
return str(_HERE / "lib")
33+
34+
35+
def get_library():
36+
return "openblas_python"

0 commit comments

Comments
 (0)