[GRASS-dev] [GRASS GIS] #3257: Do not require ctypes for compilation in temporal modules

GRASS GIS trac at osgeo.org
Thu Jan 12 20:01:46 PST 2017


#3257: Do not require ctypes for compilation in temporal modules
-------------------------+-------------------------------------------------
  Reporter:  wenzeslaus  |      Owner:  grass-dev@…
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:  7.2.1
 Component:  Temporal    |    Version:  unspecified
Resolution:              |   Keywords:  ctypes, compilation, build,
                         |  homebrew, brew, conda, macos, osx,
       CPU:              |  v.what.strds, t.create
  Unspecified            |   Platform:  All
-------------------------+-------------------------------------------------

Comment (by wenzeslaus):

 In [changeset:"70357" 70357]:
 {{{
 #!CommitTicketReference repository="" revision="70357"
 use lazy imports for the temporal package

 This avoids ctypes-related issues during compilation (see #3257).

 Using beginning of main function if possible.
 If not adding to the if __name__... global part with a note
 about imports being at the end of the file.
 Adding pygrass imports if used (even modules import ctypes through
 __init__.py).
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3257#comment:1>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list