File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -832,13 +832,15 @@ def get_data_type(t):
832
832
raise NotImplementedError ("Platform not implemented" )
833
833
834
834
from numpy import get_include
835
- from distutils .sysconfig import get_python_inc , get_python_lib
835
+ from distutils .sysconfig import get_python_inc , get_python_lib , \
836
+ get_python_version
836
837
python_path = "-I" + get_python_inc () + " "
837
838
numpy_path = "-I" + get_include () + " "
838
839
rt_path_01 = "-I" + get_rtlib_dir () + "/../libasr/runtime "
839
840
rt_path_02 = "-L" + get_rtlib_dir () + " -Wl,-rpath " \
840
841
+ get_rtlib_dir () + " -llpython_runtime "
841
- python_lib = "-L" + get_python_lib () + "/../.. -lpython3.10 -lm"
842
+ python_lib = "-L" + get_python_lib () + "/../.. -lpython" + \
843
+ get_python_version () + " -lm"
842
844
843
845
r = os .system ("gcc -g" + gcc_flags + python_path + numpy_path +
844
846
filename + ".c -o lpython_module_" + self .fn_name + ".so " +
You can’t perform that action at this time.
0 commit comments