get python bindings working

This commit is contained in:
Dane Springmeyer 2014-08-31 07:45:26 +00:00
parent beaf7a56cc
commit 6828dd5b1e
2 changed files with 8 additions and 2 deletions

View file

@ -282,7 +282,13 @@ xcopy /i /d /s /q .\build\Release\mapnik.dll ..\mapnik-sdk\libs\ /Y
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
:: move python binding into local testable location
xcopy /i /d /s /q .\build\Release\_mapnik.so bindings\python\mapnik\ /Y
xcopy /i /d /s /q .\build\Release\_mapnik.pyd bindings\python\mapnik\ /Y
echo from os.path import normpath,join,dirname > bindings\python\mapnik\paths.py
echo mapniklibpath = '%CD%/../mapnik-sdk/libs/mapnik' >> bindings\python\mapnik\paths.py
echo mapniklibpath = normpath(join(dirname(__file__),mapniklibpath)) >> bindings\python\mapnik\paths.py
echo inputpluginspath = join(mapniklibpath,'input') >> bindings\python\mapnik\paths.py
echo fontscollectionpath = join(mapniklibpath,'fonts') >> bindings\python\mapnik\paths.py
echo __all__ = [mapniklibpath,inputpluginspath,fontscollectionpath] >> bindings\python\mapnik\paths.py
:: plugins

View file

@ -152,7 +152,7 @@
{
"target_name": "_mapnik",
"type": "loadable_module",
"product_extension": "so",
"product_extension": "pyd",
"sources": [ '<!@(find bindings/python/ -name "*.cpp")' ],
"dependencies": [ "mapnik" ],
'include_dirs': [