Raylend / agnprocesses

4 stars 1 forks source link

Incorrect usage of $LD_LIBRARY_PATH when installing #1

Closed Raylend closed 3 years ago

Raylend commented 4 years ago

`cmd = "echo $LD_LIBRARY_PATH" cmdout = subprocess.check_output(cmd, shell=True)[:-1].decode('utf-8')

module = Extension( "pair_ext", sources=['processes/c_codes/GammaGammaPairProduction/gamma-gamma.cpp'], library_dirs=[cmdout], libraries=['GammaGammaPairProduction'] ) ` not working, because $LD_LIBRARY_PATH contains several paths. Fix it!

Raylend commented 3 years ago

The issue has been resolved.

But I still need to do something with

    #include "/home/raylend/anaconda3/include/python3.7m/Python.h"