Ticket #21376: pymol-build.patch

File pymol-build.patch, 3.2 KB (added by howarth@…, 15 years ago)

use python2.6-config to find headers

  • contrib/modules/Makefile.pre.in.src

    old new  
    8888# === Variables that you may want to customize (rarely) ===
    8989
    9090# (Static) build target
    91 TARGET=         python
     91TARGET=         python2.6
    9292
    9393# Installed python binary (used only by boot target)
    94 #PYTHON=               
     94PYTHON= python2.6       
    9595
    9696# Add more -I and -D options here
    9797CFLAGS=         $(OPT) -I$(INCLUDEPY) -I$(EXECINCLUDEPY) $(DEFS)
     
    126126MACHDEP=        @MACHDEP@
    127127SO=             @SO@
    128128LDSHARED=       @LDSHARED@
     129BLDSHARED=      @LDSHARED@
    129130CCSHARED=       @CCSHARED@
    130131LINKFORSHARED=  @LINKFORSHARED@
    131132#@SET_CCC@
    132133
    133134# Install prefix for architecture-independent files
    134 prefix=         /usr/local
     135prefix=         @PREFIX@
    135136
    136137# Install prefix for architecture-dependent files
    137138exec_prefix=    $(prefix)
     
    168169MAKEFILE=       $(LIBPL)/Makefile
    169170CONFIGC=        $(LIBPL)/config.c
    170171CONFIGCIN=      $(LIBPL)/config.c.in
    171 SETUP=          $(LIBPL)/Setup.thread $(LIBPL)/Setup.local $(LIBPL)/Setup
     172SETUP=          $(LIBPL)/Setup.config $(LIBPL)/Setup.local $(LIBPL)/Setup
    172173
    173174SYSLIBS=        $(LIBM) $(LIBC)
    174175
  • setup/Rules.osx-fink

    old new  
    66#
    77#- Building ----------------------------------------------------------
    88#--- Tell "make" how to get to PyMOL
    9 PYMOL_PATH = /Users/delwarl/fink/pymol
     9PYMOL_PATH = @PREFIX@/lib/pymol
    1010#---------------------------------------------------------------------
    1111#
    1212#- Dependencies ------------------------------------------------------
     
    1414XLIB_DIR = -L/usr/X11R6/lib
    1515XINC_DIR = -I/usr/X11R6/include
    1616#--- Python
    17 PYTHON_EXE = /sw/bin/python2.3
     17PYTHON_EXE = @PREFIX@/bin/python2.6
    1818PYTHON_LIB =
    1919PYTHON_LIB_DIR =
    20 PYTHON_INC_DIR = -I/sw/include/python2.3 \
    21         -I/sw/include/python2.3/Numeric
     20PYTHON_INC_DIR = `python2.6-config --include`/Numeric
    2221#--- Other external dependencies
    23 EXT_INC_DIR = -I/sw/include
    24 EXT_LIB_DIR = -L/sw/lib
     22EXT_INC_DIR = -I@PREFIX@/include
     23EXT_LIB_DIR = -L@PREFIX@/lib
    2524#---------------------------------------------------------------------
    2625#
    2726#- Build for LINUX as an importable module ---------------------------
     
    3029#--- PyMOL configuration
    3130DEFS = -D_PYMOL_MODULE -D_PYMOL_NUMPY -D_PYMOL_FINK
    3231#--- How we build shared libraries
    33 BUILD = -bundle -bundle_loader /sw/bin/python2.3 -flat_namespace -undefined suppress
     32BUILD = -bundle -bundle_loader @PREFIX@/bin/python2.6 -flat_namespace -undefined suppress
    3433#--- What are we trying to build?
    3534DEST = -o modules/pymol/_cmd.so
    3635#--- Gcc Options for Linux
  • setup/pymol.com.osx-fink

    old new  
    55# ==============================================================
    66# Set PYMOL_PATH to point at the correct location on your system
    77#
    8 PYMOL_PATH=/Users/delwarl/pymol
     8PYMOL_PATH=@PREFIX@/lib/pymol
    99export PYMOL_PATH
    1010#
    1111# ==============================================================
     
    2020fi
    2121export PYTHONPATH
    2222#
    23 exec /sw/bin/python $PYMOL_PATH/modules/pymol/__init__.py "$@"
     23APBS_PSIZE=@PREFIX@/bin/apbs-psize.py
     24export APBS_PSIZE
     25#
     26exec @PREFIX@/bin/python2.6 $PYMOL_PATH/modules/pymol/__init__.py -d "_ set stereo_double_pump_mono,quiet=1" "$@"