Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /branches/MySQLdb-1.2/MySQLdb/setup.py [r457] .. [r458] Maximize Restore

  Switch to side-by-side view

--- a/branches/MySQLdb-1.2/MySQLdb/setup.py
+++ b/branches/MySQLdb-1.2/MySQLdb/setup.py
@@ -90,8 +90,10 @@
     extra_objects.append(os.path.join(
         library_dirs[0],'lib%s.a' % client))
 
-extra_compile_args.append(compiler_flag("Dversion_info=%s" % metadata['version_info']))
-extra_compile_args.append(compiler_flag("D__version__=%s" % metadata['version']))
+define_macros = [
+  ('version_info', metadata['version_info']),
+  ('__version__', metadata['version']),
+]
 
 rel = open("MySQLdb/release.py",'w')
 rel.write("""
@@ -105,6 +107,7 @@
 
 ext_mysql_metadata = dict(
     name="_mysql",
+    define_macros=define_macros,
     include_dirs=include_dirs,
     library_dirs=library_dirs,
     libraries=libraries,