Ticket #34777: build.py.patch

File build.py.patch, 644 bytes (added by bpanulla (Brian Panulla), 12 years ago)

files/build.py.patch

  • bindings/python/build.py

    old new paths += "__all__ = [mapniklibpath,inputpluginspath,fontscollectionpath]\n" 
    143143if not os.path.exists('mapnik'):
    144144    os.mkdir('mapnik')
    145145
    146 if hasattr(os.path,'relpath'): # python 2.6 and above
    147     file('mapnik/paths.py','w').write(paths % (os.path.relpath(env['MAPNIK_LIB_DIR'],target_path)))
    148 else:
    149     file('mapnik/paths.py','w').write(paths % (env['MAPNIK_LIB_DIR']))
     146file('mapnik/paths.py','w').write(paths % (env['MAPNIK_LIB_DIR']))
    150147
    151148# force open perms temporarily so that `sudo scons install`
    152149# does not later break simple non-install non-sudo rebuild