[GRASS-dev] [GRASS GIS] #640: setup.py may use different Python than configured for GRASS

GRASS GIS trac at osgeo.org
Thu Apr 18 12:15:46 PDT 2013


#640: setup.py may use different Python than configured for GRASS
-------------------------+--------------------------------------------------
 Reporter:  kyngchaos    |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  6.5.0                    
Component:  Compiling    |     Version:  6.4.0 RCs                
 Keywords:  python       |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by glynn):

 Replying to [comment:6 hamish]:
 > ok, so the question becomes what uses Python.make,

 Python.make is used by gui/wxpython, gui/scripts, scripts/r.in.wms, and
 various subdirectories of lib/python.

 GRASS 7 doesn't have any C or C++ code which links against the Python
 library. The preferred way of integrating C and Python code is to use
 ctypes to access C functions from Python.

 The PYTHON make variable exists to simplify the case where the default
 "python" command isn't suitable for GRASS (e.g. because it's Python 3.x,
 or it doesn't have the numpy, wxPython, etc packages). In such cases, it
 can be overridden on the command line, e.g. "make
 PYTHON=/usr/local/bin/python2".

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/640#comment:8>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list