Skip to content

Commit

Permalink
Merge pull request #724 from RobinD42/wxPy-4.0.1-hotfix
Browse files Browse the repository at this point in the history
wxPython 4.0.1 hotfix
  • Loading branch information
RobinD42 authored Feb 2, 2018
2 parents fa205ea + 95bf511 commit f32b8c0
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 5 deletions.
23 changes: 23 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,29 @@
wxPython Changelog
==================

4.0.1 Lemonade
--------------
* 2-Feb-2018

PyPI: https://pypi.python.org/pypi/wxPython/4.0.1
Extras: https://extras.wxPython.org/wxPython4/extras/
Pip: ``pip install wxPython==4.0.1``

This release is a quick hot-fix of some issues discovered in 4.0.0 just after
the release, plus a bit of low-hanging fruit that was easy to squeeze in too.
Changes in this release include the following:

* A fix for a segfault that happens upon startup on newer linux releases. (#648)

* Set LD_RUN_PATH for the wxWidgets part of the build so the wx libs that are
loaded by other wx libs can be found successfully. (#723)

* Use wxApp::GetInstance to check if there is an existing wxApp object. (#720)





4.0.0 "The Phoenix Takes Flight!"
---------------------------------
* 31-Jan-2018
Expand Down
6 changes: 6 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,12 @@ def cmd_build_wx(options, args):
if options.extra_make:
build_options.append('--extra_make="%s"' % options.extra_make)

if not isWindows and not isDarwin and not options.no_magic and not options.use_syswx:
# Using $ORIGIN in the rpath will cause the dynamic linker to look
# for shared libraries in a folder relative to the loading binary's
# location. Here we'll use just $ORIGIN so it should look in the same
# folder as the wxPython extension modules.
os.environ['LD_RUN_PATH'] = '$ORIGIN'

try:
# Import and run the wxWidgets build script
Expand Down
2 changes: 1 addition & 1 deletion buildtools/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
VER_MINOR = 0
VER_RELEASE = 1

VER_FLAGS = "a1" # wxPython release flags
VER_FLAGS = "" # wxPython release flags

# The VER_FLAGS value is appended to the version number constructed from the
# first 3 components and should be set according to the following patterns.
Expand Down
2 changes: 1 addition & 1 deletion demo/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# This file was generated by wxPython's wscript.

VERSION_STRING = '4.0.0'
VERSION_STRING = '4.0.1'
2 changes: 1 addition & 1 deletion ext/wxWidgets
2 changes: 1 addition & 1 deletion src/wxpy_api.sip
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ PyObject* i_wxVariant_out_helper(const wxVariant& value)
PyObject* wxPyNoAppError = NULL;

bool i_wxPyCheckForApp(bool raiseException) {
if (wxTheApp != NULL)
if (wxApp::GetInstance() != NULL)
return true;
else {
if (raiseException)
Expand Down
2 changes: 1 addition & 1 deletion vagrant/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ release or the snapshots server can be used. With that file in place then a
build for a specific distro can be done with just a few vagrant commands, for
example::

cd vagrant/ubuntu-16.04-x64
cd vagrant/ubuntu-16.04
vagrant up
vagrant ssh -c "scripts/build.sh ubuntu-16.04"
vagrant halt
Expand Down

0 comments on commit f32b8c0

Please sign in to comment.