Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Improve wxpython #657

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions python/wxpython/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@

mkdir -vp ${PREFIX}/bin;

ARCH="$(uname 2>/dev/null)"
MYARCH="$(uname 2>/dev/null)"
MYNCPU=$(( (CPU_COUNT > 8) ? 8 : CPU_COUNT ))

export CFLAGS="-m64 -pipe -O2 -march=x86-64 -fPIC"
MYCFLAGS=""
if [[ ${ARCH} == 64 ]]; then
MYCFLAGS="-m64 -march=x86-64"
fi

export CFLAGS="${MYCFLAGS} -pipe -O2 -fPIC"
export CXXFLAGS="${CFLAGS} -std=c++11"
export CPPFLAGS="${CFLAGS} -std=c++11"
#export CPPFLAGS="-I${PREFIX}/include"
#export LDFLAGS="-L${PREFIX}/lib64"

LinuxInstallation() {
# Build dependencies:
Expand Down Expand Up @@ -41,33 +45,23 @@ LinuxInstallation() {
--with-regex=builtin \
--with-zlib=builtin \
--prefix="${PREFIX}" || return 1;
make || return 1;
make -j ${MYNCPU} || return 1;
make install || return 1;

pushd wxPython/;
${PYTHON} -u ./setup.py install UNICODE=1 BUILD_BASE=build WX_CONFIG="${PREFIX}/bin/wx-config --prefix=${PREFIX}" \
--record installed_files.txt --prefix="${PREFIX}" || return 1;
popd;

rm ${PREFIX}/bin/wx-config || return 1;

pushd ${PREFIX};
ln -vs ../lib/wx/config/inplace-gtk2-unicode-3.0 wx-config || return 1;
popd;

return 0;
}

case ${ARCH} in
case ${MYARCH} in
'Linux')
LinuxInstallation || exit 1;
;;
*)
echo -e "Unsupported machine type: ${ARCH}";
echo -e "Unsupported machine type: ${MYARCH}";
exit 1;
;;
esac

#POST_LINK="${PREFIX}/bin/.wxpython-post-link.sh"
#cp -v ${RECIPE_DIR}/post-link.sh ${POST_LINK};
#chmod -v 0755 ${POST_LINK};
3 changes: 1 addition & 2 deletions python/wxpython/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

package:
name: wxpython
version: 3.0.2.0
Expand All @@ -9,7 +8,7 @@ source:
sha1: 5053f3fa04f4eb3a9d4bfd762d963deb7fa46866

build:
number: 2
number: 3

requirements:
build:
Expand Down