Ticket #21642: pynmr.diff

File pynmr.diff, 1.9 KB (added by howarth@…, 15 years ago)

build against python26

  • pmg_tk/startup/pynmr/Crmsd.i

    old new  
    44%array_functions(char *, charArray);
    55%array_functions(int, intArray);
    66%{
     7extern char * C_do_best_range(char*, char*, char*, char*, char*, double);
    78%}
    89
    910extern char * C_do_best_range(char*, char*, char*, char*, char*, double);
  • pmg_tk/startup/pynmr/run.macos

    old new  
    1 /Users/leigh/pynmr/swig/swig -python -I/Users/leigh/pynmr/swig/Lib/ -I/Users/leigh/pynmr/swig/Lib/python Crmsd.i
     1@PREFIX@/bin/swig -python Crmsd.i
    22
    33# now fix the error that swig produces...
    44sed -e '/SWIG_init/s/init_/init/' -e '/SWIG_name/s/_Crmsd/Crmsd/ ' Crmsd_wrap.c > Crmsd_wrap2.c
     
    88#gcc -c Crmsd.c Crmsd_wrap.c -I../../../meschach -I/usr/include/python2.3 -lm
    99#gcc -shared Crmsd.o Crmsd_wrap.o meschach.a -o Crmsd.so
    1010
    11 gcc -fno-common -c Crmsd.c Crmsd_wrap.c -I/Users/leigh/pynmr/meschach -I/usr/include/python2.3  -D_POSIX_C_SOURCE
    12 gcc -bundle -flat_namespace -L/usr/include/python2.3 Crmsd.o Crmsd_wrap.o /Users/leigh/pynmr/meschach/meschach.a -lPython -o Crmsd.so
     11gcc -O3 -fno-common -c Crmsd.c Crmsd_wrap.c -I@PREFIX@/include/meschach -I@PREFIX@/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6  -D_POSIX_C_SOURCE
     12gcc -O3 -bundle -bundle_loader @PREFIX@/bin/python2.6 -flat_namespace -undefined suppress Crmsd.o Crmsd_wrap.o -L@PREFIX@/lib -lmeschach -o Crmsd.so
    1313
    1414
    1515
  • pmg_tk/startup/pynmr/test_data/test.script

    old new  
    66        pairfit=0)
    77nmr_cmd.C_do_best_range('test_1', 'C N CA', \
    88        "test_1 test_2 test_3", "all", \
    9         "/home2/leigh/Proj/pynmr/pmg_tk/startup/pynmr/test_data/", 1.0)
     9        "@PREFIX@/lib/pymol/modules/pmg_tk/startup/pynmr/test_data", 1.0)
    1010