Skip to content

Commit

Permalink
Merge pull request #1687 from wxWidgets/update-sip
Browse files Browse the repository at this point in the history
Update sip to 4.19.23
  • Loading branch information
RobinD42 authored Jun 17, 2020
2 parents c568bee + c9ccff3 commit b452a35
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 16 deletions.
10 changes: 10 additions & 0 deletions bin/build-sip-msw
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ fi

MYBINDIR=$(dirname $(readlink -f $0))

# This is specific to my machine. If you need to build your own sip then adjust accordingly
export INCLUDE="c:\TOOLS\VisStudio9\VC\ATLMFC\INCLUDE;c:\TOOLS\VisStudio9\VC\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;"
export LIB="c:\TOOLS\VisStudio9\VC\ATLMFC\LIB;c:\TOOLS\VisStudio9\VC\LIB;C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib;"
export SDK_DIR="C:\Program Files\Microsoft SDKs\Windows\v7.1"
export PATH="/c/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Bin:$PATH"

echo "INCLUDE: $INCLUDE"
echo "LIB: $LIB"


cd /c/projects/sip/sip
SIPVER=$($PYTHON -c "import sys,configure; sys.stdout.write(configure.sip_version_str);")

Expand Down
10 changes: 5 additions & 5 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@

# Some tools will be downloaded for the builds. These are the versions and
# MD5s of the tool binaries currently in use.
sipCurrentVersion = '4.19.19'
sipCurrentVersion = '4.19.23'
sipMD5 = {
'darwin' : '3309e69f2341f11bac263d7faea19616',
'win32' : 'fd8be5c5fa369a848e907acad6879846',
'linux32' : 'd0271b47695e74483f0c0d54f24819d5',
'linux64' : '355410a19846768cdeb53efe249aabdb',
'darwin' : 'cbd84be2a54eee9a85d53b2b464c9e62',
'win32' : 'e9082463286f5233544f801de6d00642',
'linux32' : '0147794b52af30d356eed07517da1d48',
'linux64' : '4f8c41f5157a48020b87683538842124',
}

wafCurrentVersion = '2.0.19'
Expand Down
3 changes: 0 additions & 3 deletions etg/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,6 @@ def fixEditorClass(name):
module.find('wxGridCellEditorPtr').piIgnored = True
module.find('wxGridCellAttrPtr').piIgnored = True

module.addHeaderCode('#define sipName_ptr "ptr"')
module.addHeaderCode('#define sipName_tocopy "tocopy"')

#-----------------------------------------------------------------
# The instanceCode attribute is code that is used to make a default
# instance of the class. We can't create them using the same class in
Expand Down
6 changes: 3 additions & 3 deletions sip/siplib/sip.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* The SIP module interface.
*
* Copyright (c) 2018 Riverbank Computing Limited <[email protected]>
* Copyright (c) 2020 Riverbank Computing Limited <[email protected]>
*
* This file is part of SIP.
*
Expand Down Expand Up @@ -54,8 +54,8 @@ extern "C" {
/*
* Define the SIP version number.
*/
#define SIP_VERSION 0x041313
#define SIP_VERSION_STR "4.19.19"
#define SIP_VERSION 0x041317
#define SIP_VERSION_STR "4.19.23"


/*
Expand Down
19 changes: 18 additions & 1 deletion sip/siplib/siplib.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SIP library code.
*
* Copyright (c) 2019 Riverbank Computing Limited <[email protected]>
* Copyright (c) 2020 Riverbank Computing Limited <[email protected]>
*
* This file is part of SIP.
*
Expand Down Expand Up @@ -9338,6 +9338,7 @@ static PyObject *sip_api_get_reference(PyObject *self, int key)
return NULL;

obj = PyDict_GetItem(dict, key_obj);
Py_DECREF(key_obj);
Py_XINCREF(obj);

return obj;
Expand Down Expand Up @@ -11320,6 +11321,11 @@ static SIP_SSIZE_T sipSimpleWrapper_getcharbuffer(sipSimpleWrapper *self,
*/
static void sipSimpleWrapper_dealloc(sipSimpleWrapper *self)
{
PyObject *error_type, *error_value, *error_traceback;

/* Save the current exception, if any. */
PyErr_Fetch(&error_type, &error_value, &error_traceback);

forgetObject(self);

/*
Expand All @@ -11331,6 +11337,9 @@ static void sipSimpleWrapper_dealloc(sipSimpleWrapper *self)

/* Call the standard super-type dealloc. */
PyBaseObject_Type.tp_dealloc((PyObject *)self);

/* Restore the saved exception. */
PyErr_Restore(error_type, error_value, error_traceback);
}


Expand Down Expand Up @@ -11727,6 +11736,11 @@ static int sipWrapper_clear(sipWrapper *self)
*/
static void sipWrapper_dealloc(sipWrapper *self)
{
PyObject *error_type, *error_value, *error_traceback;

/* Save the current exception, if any. */
PyErr_Fetch(&error_type, &error_value, &error_traceback);

/*
* We can't simply call the super-type because things have to be done in a
* certain order. The first thing is to get rid of the wrapped instance.
Expand All @@ -11737,6 +11751,9 @@ static void sipWrapper_dealloc(sipWrapper *self)

/* Skip the super-type's dealloc. */
PyBaseObject_Type.tp_dealloc((PyObject *)self);

/* Restore the saved exception. */
PyErr_Restore(error_type, error_value, error_traceback);
}


Expand Down
2 changes: 1 addition & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def configure(conf):
# Visual Studio 2017. However, waf is using "msvc 15.0" to designate
# that version rather than "14.1" so we'll need to catch that case and
# fix up the msvc_version accordingly.
if msvc_version == "14.1" and sys.version_info >= (3,7):
if msvc_version in ["14.1", "14.2"] and sys.version_info >= (3,7):
##msvc_version = '15.0'

# On the other hand, microsoft says that v141 and v140 (Visual
Expand Down
6 changes: 3 additions & 3 deletions wx/include/wxPython/sip.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* The SIP module interface.
*
* Copyright (c) 2018 Riverbank Computing Limited <[email protected]>
* Copyright (c) 2020 Riverbank Computing Limited <[email protected]>
*
* This file is part of SIP.
*
Expand Down Expand Up @@ -54,8 +54,8 @@ extern "C" {
/*
* Define the SIP version number.
*/
#define SIP_VERSION 0x041313
#define SIP_VERSION_STR "4.19.19"
#define SIP_VERSION 0x041317
#define SIP_VERSION_STR "4.19.23"


/*
Expand Down

0 comments on commit b452a35

Please sign in to comment.