[~] Refactor
This commit is contained in:
parent
723ad56ca9
commit
de05d2cd05
@ -135,7 +135,7 @@ def mypyc_build(file_path: pathlib.Path) -> Any:
|
||||
[str(source_path)],
|
||||
target_dir=str(output_dir / 'build')
|
||||
)
|
||||
t1.build_temp = str(output_dir)
|
||||
t1.build_temp = output_dir
|
||||
t1.build_lib = lib_dir
|
||||
#t2 = Cython.Build.Inline.Extension(
|
||||
# name=sha256sum,
|
||||
@ -153,6 +153,16 @@ def mypyc_build(file_path: pathlib.Path) -> Any:
|
||||
|
||||
raise NotImplementedError
|
||||
|
||||
class Source:
|
||||
@staticmethod
|
||||
def test2(
|
||||
_a : numpy.ndarray[Any, numpy.dtype[numpy.int64]],
|
||||
_id : numpy.dtype[numpy.int32] | int,
|
||||
T : float=16
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
source = build(r'''
|
||||
cimport cython
|
||||
|
||||
@ -214,7 +224,7 @@ def test2(long long [:] _a, int _id, double T=16) -> int:
|
||||
|
||||
return _a[_id]
|
||||
|
||||
''')
|
||||
''', Source)
|
||||
|
||||
def test_cython(N: int=4, T:int=16):
|
||||
#a = [0] * N
|
||||
|
Loading…
Reference in New Issue
Block a user