Mercurial > repos > melissacline > ucsc_cancer_utilities
changeset 35:8ef79bd0be9a
modify
author | jingchunzhu <jingchunzhu@gmail.com> |
---|---|
date | Fri, 24 Jul 2015 16:14:36 -0700 |
parents | d8e98030eca9 |
children | ab161b5ac9cc |
files | seg2matrix/CGData/SegToMatrix.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/seg2matrix/CGData/SegToMatrix.py Fri Jul 24 14:56:37 2015 -0700 +++ b/seg2matrix/CGData/SegToMatrix.py Fri Jul 24 16:14:36 2015 -0700 @@ -1,10 +1,12 @@ - - import ctypes import os base = os.path.dirname(os.path.abspath(__file__)) libFile = base + "/CsegToMatrix.so" + +os.system("rm -f "+ base+"/CsegToMatrix.so") +os.system("g++ -fPIC --shared "+ base +"/CsegToMatrix.cc -o "+ base +"/CsegToMatrix.so") + if os.path.exists(libFile): segLib = ctypes.cdll.LoadLibrary(libFile)