Skip to content
This repository
Browse code

avoid trying to determine relative path from python module to plugins…

… as this can make flexible packaging harder - closes #1171
  • Loading branch information...
commit 7fe677dd41de2172dcf77bbe95b6e9cab67d4a2c 1 parent 19b51fd
Dane Springmeyer authored

Showing 1 changed file with 1 addition and 4 deletions. Show diff stats Hide diff stats

  1. 5  bindings/python/build.py
5  bindings/python/build.py
@@ -143,10 +143,7 @@ def is_py3():
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

0 notes on commit 7fe677d

Please sign in to comment.
Something went wrong with that request. Please try again.