1. Ronald Oussoren
  2. pyobjc


Ronald Oussoren  committed f36c687

Python2.5 related cleanups

  • Participants
  • Parent commits 60452be
  • Branches pyobjc-ancient

Comments (0)

Files changed (1)

File setup.py

View file
  • Ignore whitespace
     vstr = '.'.join(map(str, MIN_PYTHON))
     raise SystemExit('PyObjC: Need at least Python ' + vstr)
+# Add source-deps to the path
+# Before py2.5 we did this:
+#    site.addsitedir(os.path.abspath('source-deps'))
+# When using py2.5 this will give warnings about missing __init__.py files,
+# which I (ronald) find annoying enough to add a workaround...
+for fn in os.listdir('source-deps'):
+    if not fn.endswith('.pth'): continue
+    sys.path.append(open(os.path.join('source-deps', fn), 'r').read().strip())
 # Add our utility library to the path
     os.path.abspath(os.path.join(os.path.dirname(__file__), 'setup-lib')))