Commits

cuchac  committed 59fba7a

Run 2to3 during build if using Python3

  • Participants
  • Parent commits 0109f62

Comments (0)

Files changed (1)

     from distutils.core import setup
 from south import __version__
 
+import sys
+
+# Python 3 compaibility
+extra = {}
+if sys.version_info >= (3,):
+    extra['use_2to3'] = True
+
 setup(
     name='South',
     version=__version__,
         'south.tests.deps_c.migrations',
         'south.tests.deps_b.migrations'
     ],
+    **extra
 )