Ticket #34777: build.py.patch
File build.py.patch, 644 bytes (added by bpanulla (Brian Panulla), 12 years ago) |
---|
-
bindings/python/build.py
old new paths += "__all__ = [mapniklibpath,inputpluginspath,fontscollectionpath]\n" 143 143 if not os.path.exists('mapnik'): 144 144 os.mkdir('mapnik') 145 145 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'])) 146 file('mapnik/paths.py','w').write(paths % (env['MAPNIK_LIB_DIR'])) 150 147 151 148 # force open perms temporarily so that `sudo scons install` 152 149 # does not later break simple non-install non-sudo rebuild