{"comment":{"created_at":"2011-10-11T16:04:49Z","body":"[springmeyer] r872 fixed #209 and further improves upon new usage of distutils.sysconfig","updated_at":"2011-10-11T16:04:49Z","url":"https://api.github.com/repos/artemp/mapnik/issues/comments/2365840","id":2365840,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"}},"action":"created","issue":{"number":209,"created_at":"2011-10-11T16:04:45Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Several tickets have addressed shortcomings of the current handling of the installation of the python bindings:\r\n\r\n#10 - Installing in a non-standard location as non-root user (PREFIX not working)\r\n#48 - installing python modules with respect to the PREFIX build option\r\n#137 -Mapnik python bindings on OS 10.5 should not install in /System\r\n\r\nThe basic issue is that the SCons scripts do not allow enough flexibility in setting the prefix for python installs, and do not attempt to determine the site-packages install location in reliably, cross-platform way. \r\n\r\nThe attached patch addresses #10 and #48 by adding a user-configurable PathVariable for env['PYTHON_SYS_PREFIX'] and renaming the previously entitled variable to env['PYTHON_SYS_PREFIX'].\r\n\r\nIt also switches from a concatenation approach for building the python site-packages installation path to using the python standard 'get_python_lib()' from the 'disutils.sysconfig' package.\r\n\r\nThe 'get_python_inc' from  'disutils.sysconfig' is also used to get the location of header files.\r\n\r\nFinally os.popen is replaced with the more modern incarnation -> subprocess Popen, for shelling out to the user specified version of Python, maintaining the ability to build mapnik with a different version of python than mapnik is built and linked against.\r\n\r\nTested on Mac OS 10.5 with python 25 and python 26, as well as ubuntu 8.10 with python 25.","comments":5,"title":"SCons python install usability improvments","updated_at":"2011-10-11T16:04:50Z","url":"https://api.github.com/repos/artemp/mapnik/issues/209","id":1877279,"assignee":null,"milestone":{"number":6,"created_at":"2011-10-11T15:50:21Z","due_on":"1970-01-01T09:20:38Z","title":"0.6.0","creator":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"url":"https://api.github.com/repos/artemp/mapnik/milestones/6","open_issues":1,"closed_issues":97,"description":"=== Summary ===\r\n\r\nThis release offers a great advancement in usability and features such as several new plugins, advanced symbolization, and ICU unicode support.\r\n\r\nOver 140 tickets were closed against this milestone, and builds across both linux, mac and windows should be working better than ever.\r\n\r\nWe also now have a fresh set of [http://svn.mapnik.org/trunk/docs/api_docs/python/index.html Python API Docs (Epydocs)].\r\n\r\nEnjoy,\r\n\r\nDane\r\n\r\n\r\n=== Highlights ===\r\n\r\n * New ICU unicode support via Artem's genius\r\n\r\n * [http://trac.mapnik.org/wiki/MapnikRenderers#Cairographics Cairo] rendering backend - thanks Tom!\r\n\r\n * XML [http://svn.mapnik.org/trunk/docs/api_docs/python/mapnik-module.html#load_map_from_string from a string] - wicked nice Jonb\r\n \r\n * Support for [http://trac.mapnik.org/wiki/RasterSymbolizer raster composing modes] targeted at hillshading - Nice Marcin!\r\n\r\n * Tons of [PluginArchitecture new plugins] - OSM (nick), Oracle, OGR, SQlite (kunitoki)\r\n\r\n * Big improvements to [UsingScons SCons] - experience it for yourself and build it :) (Thanks jbronn for the boost help)\r\n\r\n * In memory [http://trac.mapnik.org/ticket/192 PointDatasource ] for dynamically drawing geometries - lwu rocks!\r\n\r\n * Love for the OgcServer - thanks xcacou, tmcw, and theo - it works with OSM xml, WMS 1.3.0, and a whole lot more.\r\n\r\n * We've got FontSet support (fallback fonts) from Beau- nice stuff\r\n \r\n * [http://trac.mapnik.org/ticket/117 ProjTransform] exposed by Artem in python. Now you can transform bbox's between projected systems.\r\n\r\n * Mapnik is faster (#156) with projections and PostGIS (#139,#140,#141) thanks to the genius of Rcoup\r\n\r\n * Map buffers to avoid cut labels - thanks Artem!\r\n\r\n * Transparent Point Symbolizers - good stuff Brian!\r\n\r\nFor a full list of major changes see the 0.6.0 Changelog wiki:Release0.6.0\r\n\r\n","state":"open"},"closed_at":"2011-10-11T16:04:50Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"html_url":"https://github.com/artemp/mapnik/issues/209","labels":[{"name":"Scons_Build_Scripts","url":"https://api.github.com/repos/artemp/mapnik/labels/Scons_Build_Scripts","color":"FFFFFF"}],"state":"closed"},"legacy":{"issue_id":1877279,"comment_id":2365840}}