--- setup.py.old 2009-07-18 11:51:10.000000000 -0700
+++ setup.py 2009-07-18 11:52:13.000000000 -0700
@@ -39,11 +39,11 @@
 			     sources=['code/hardware/eeg/scalp/scalp.pyx', 'code/hardware/eeg/scalp/epleeg.cpp', 
 				      'code/hardware/eeg/scalp/epleeg_wrapper.cpp']))
 # hardware.vr modules
-if platform=='Darwin' and sys.version[:3]=='2.4':
+if platform=='Darwin':
     # currently distutils for Python 2.4 isn't looking under /usr/local,
     # necessitating this 
-    INC_DIR = '/usr/local/include'
-    LIB_DIR = '/usr/local/lib'
+    INC_DIR = '@@PREFIX@@/include'
+    LIB_DIR = '@@PREFIX@@/lib'
     ext_modules.append(Extension(name='pyepl.hardware.vr.avatar', sources=['code/hardware/vr/avatar.pyx'],
  include_dirs=[INC_DIR], libraries=['ode'], library_dirs=[LIB_DIR]))
 else:
