Commits

Ronald Oussoren  committed 33373e3

Also compile without warnings with python 3.2 and 3.3

also: add 'pragma message' for the testproperties.m file
to tell users that the warnings are expected
also: update distribute version in distribute_setup.py
to 0.6.28 because that's needed for python 3.3 support

  • Participants
  • Parent commits 7b150bb

Comments (0)

Files changed (3)

File pyobjc-core/Modules/objc/objc-object.m

      },			/* as_buffer */
      0,					/* name */
      0,					/* slots */
+#else /* Python 3 */
+     { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 
+     }, /* as_number */
+     { 0,0,0
+     }, /* as_mapping */
+     { 0,0,0,0,0,0,0,0,0,0
+     }, /* as_sequence */
+     { 0,0
+     }, /* as_buffer */
+     0, 0 /* ht_name, ht_slots */
+#if PY_VERSION_HEX >= 0x03030000
+     , 0, 0 /* ht_qualname, ht_cached_keys */
 #endif
+
+
+#endif /* Python 3 */
    }, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
 };
 

File pyobjc-core/Modules/objc/test/properties.m

 
 #if (PyObjC_BUILD_RELEASE >= 1005) 
 
+#pragma message "Ignore warnings about properties in this file."
 @property int prop1;
 @property float prop2;
 @property struct_s prop3;

File pyobjc-core/distribute_setup.py

             args = [quote(arg) for arg in args]
         return os.spawnl(os.P_WAIT, sys.executable, *args) == 0
 
-DEFAULT_VERSION = "0.6.19"
+DEFAULT_VERSION = "0.6.28"
 DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/"
 SETUPTOOLS_PKG_INFO = """\
 Metadata-Version: 1.0