Skip to content
Permalink
Browse files

Prepare for MacPorts wxPython 4.x+

  • Loading branch information
neurodroid committed Feb 4, 2020
1 parent e65984f commit e00a5c32febaf8cdc903c0708f4fc0e0aecff0be
Showing with 10 additions and 4 deletions.
  1. +9 −3 dist/macosx/scripts/conf_macports_release.sh
  2. +1 −1 src/stimfit/py/embedded_stf.py
@@ -1,16 +1,22 @@
#! /bin/bash

prefix="/opt/local"
WX_CONF="${prefix}/Library/Frameworks/wxWidgets.framework/Versions/wxPython/3.0/bin/wx-config"
# WX_CONF="${prefix}/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.1/bin/wx-config"
WX_CONF="/Users/cs/Phoenix/build/wxbld/wx-config"

MYCC=`${WX_CONF} --cc`
MYCFLAGS=`${WX_CONF} --cflags`
MYCFLAGS="${MYCFLAGS} -I${prefix}/include"
MYCXX=`${WX_CONF} --cxx`
MYCXXFLAGS=`${WX_CONF} --cxxflags`
MYCXXFLAGS="${MYCXXFLAGS} -I${prefix}/include -I/Users/cs/Phoenix/wx/include/wxPython"
MYLD=`${WX_CONF} --ld`

MYLDFLAGS=`${WX_CONF} --libs core base aui`
MYLDFLAGS="${MYLDFLAGS} -headerpad_max_install_names -L${prefix}/lib"
config_args="--with-wx-config=${WX_CONF} \
--disable-dependency-tracking \
--with-biosiglite"
# --with-lapack-lib=/opt/local/lib/libatlas.a \
# --enable-debug \

../../configure ${config_args} CC="${MYCC} -I${prefix}/include" CXX="${MYCXX} -I${prefix}/include" LD="${MYLD}" LDFLAGS="-headerpad_max_install_names -L${prefix}/lib" PYTHON="${prefix}/bin/python2.7"
../../configure ${config_args} CC="${MYCC}" CFLAGS="${MYCFLAGS}" CXX="${MYCXX}" CXXFLAGS="${MYCXXFLAGS}" LD="${MYLD}" LDFLAGS="${MYLDFLAGS}" PYTHON="${prefix}/bin/python3.8" PYTHONPATH="/Users/cs/Phoenix"
@@ -10,7 +10,7 @@
"""
import sys
if 'win' in sys.platform:
if 'win' in sys.platform and sys.platform != 'darwin':
import wxversion
wxversion.select('3.0-msw')
import wx

0 comments on commit e00a5c3

Please sign in to comment.
You can’t perform that action at this time.