Take versioning code out of setup.py

file:29d606ebfcb9ecabd5b53c65f1b03fa8dcacba9a -> file:7c0888ab7440b5ffab4764d790c1eb9f19dee0d5
--- a/setup.py
+++ b/setup.py
@@ -22,20 +22,20 @@ import sys, os
from distutils.core import setup
-#Sort out the version number from the containing directory
-release = os.path.basename(os.getcwd()).split('-')[1]
-fp = file("mp3togo/__init__.py", 'r')
-inlines = fp.readlines()
-fp.close()
-outlines = []
-for line in inlines:
- if line.startswith('version = '):
- outlines.append("version = '%s'\n" % release)
- else:
- outlines.append(line)
-fp = file("mp3togo/__init__.py", 'w')
-fp.writelines(outlines)
-fp.close()
+## Sort out the version number from the containing directory
+#release = os.path.basename(os.getcwd()).split('-')[1]
+#fp = file("mp3togo/__init__.py", 'r')
+#inlines = fp.readlines()
+#fp.close()
+#outlines = []
+#for line in inlines:
+# if line.startswith('version = '):
+# outlines.append("version = '%s'\n" % release)
+# else:
+# outlines.append(line)
+#fp = file("mp3togo/__init__.py", 'w')
+#fp.writelines(outlines)
+#fp.close()
# patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords