Commit f0d760c6 authored by Alain Takoudjou's avatar Alain Takoudjou

wxpython: remove python-path part

parent 2260bf8d
...@@ -11,16 +11,12 @@ parts = ...@@ -11,16 +11,12 @@ parts =
wxPython wxPython
[python2.7] [python2.7]
shared = false
environment = environment =
PATH=${patch:location}/bin:${xz-utils:location}/bin:%(PATH)s PATH=${patch:location}/bin:${xz-utils:location}/bin:%(PATH)s
CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${libexpat:location}/include -I${libffi:location}/include -I${ncurses:location}/include -I${ncurses:location}/include -I${bzip2:location}/include -I${gdbm:location}/include -I${openssl:location}/include -I${sqlite3:location}/include -I${gettext:location}/include -fPIC CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${libexpat:location}/include -I${libffi:location}/include -I${ncurses:location}/include -I${ncurses:location}/include -I${bzip2:location}/include -I${gdbm:location}/include -I${openssl:location}/include -I${sqlite3:location}/include -I${gettext:location}/include -fPIC
LDFLAGS=-L${zlib:location}/lib -L${readline:location}/lib -L${libexpat:location}/lib -L${libffi:location}/lib -L${ncurses:location}/lib -L${bzip2:location}/lib -L${gdbm:location}/lib -L${openssl:location}/lib -L${sqlite3:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${readline:location}/lib -Wl,-rpath=${libexpat:location}/lib -Wl,-rpath=${libffi:location}/lib -Wl,-rpath=${ncurses:location}/lib -Wl,-rpath=${bzip2:location}/lib -Wl,-rpath=${gdbm:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${sqlite3:location}/lib -L${gettext:location}/lib -Wl,-rpath=${gettext:location}/lib -Wl,-rpath=${file:location}/lib LDFLAGS=-L${zlib:location}/lib -L${readline:location}/lib -L${libexpat:location}/lib -L${libffi:location}/lib -L${ncurses:location}/lib -L${bzip2:location}/lib -L${gdbm:location}/lib -L${openssl:location}/lib -L${sqlite3:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${readline:location}/lib -Wl,-rpath=${libexpat:location}/lib -Wl,-rpath=${libffi:location}/lib -Wl,-rpath=${ncurses:location}/lib -Wl,-rpath=${bzip2:location}/lib -Wl,-rpath=${gdbm:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${sqlite3:location}/lib -L${gettext:location}/lib -Wl,-rpath=${gettext:location}/lib -Wl,-rpath=${file:location}/lib
[python-path]
recipe = collective.recipe.shelloutput
commands =
pythonpath = ls -d ${buildout:eggs-directory}/* | tr '\n' ':'
[wxpython-eggs] [wxpython-eggs]
recipe = zc.recipe.egg recipe = zc.recipe.egg
interpreter = wxpython2.7 interpreter = wxpython2.7
...@@ -44,22 +40,21 @@ python-bin = ${buildout:bin-directory}/${wxpython-eggs:interpreter} ...@@ -44,22 +40,21 @@ python-bin = ${buildout:bin-directory}/${wxpython-eggs:interpreter}
wxwidgets-bin = ${wxWidgets:location}/bin/ wxwidgets-bin = ${wxWidgets:location}/bin/
LDFLAGS=-L${gtk-3:location}/lib -Wl,-rpath=${gtk-3:location}/lib -L${wxWidgets:location}/lib -Wl,-rpath=${wxWidgets:location}/lib LDFLAGS=-L${gtk-3:location}/lib -Wl,-rpath=${gtk-3:location}/lib -L${wxWidgets:location}/lib -Wl,-rpath=${wxWidgets:location}/lib
CPPFLAGS=-I${wxWidgets:location}/include/wx-3.0 -I${wxWidgets:location}/lib/wx/include/gtk3-unicode-3.0 -I${gtk-3:location}/include/gtk-3.0 CPPFLAGS=-I${wxWidgets:location}/include/wx-3.0 -I${wxWidgets:location}/lib/wx/include/gtk3-unicode-3.0 -I${gtk-3:location}/include/gtk-3.0
PYTHONPATH = ${python-path:pythonpath}
pkg-config = ${pkgconfig:location}/bin pkg-config = ${pkgconfig:location}/bin
PKG_CONFIG_PATH = ${glib:location}/lib/pkgconfig:${gtk-3:location}/lib/pkgconfig:${gtk-3:pkg_config_depends} PKG_CONFIG_PATH = ${glib:location}/lib/pkgconfig:${gtk-3:location}/lib/pkgconfig:${gtk-3:pkg_config_depends}
install = install =
import os, shutil import os, shutil, sys
from setuptools.archive_util import unpack_archive from setuptools.archive_util import unpack_archive
workdir = options['source-location'] workdir = options['source-location']
python_bin = options['python-bin'] python_bin = options['python-bin']
env = {'PATH':':'.join([options['pkg-config'], env = {'PATH':':'.join([options['pkg-config'],
options['wxwidgets-bin'], options['wxwidgets-bin'],
os.environ['PATH']]), os.environ['PATH']]),
'LDFLAGS':options['LDFLAGS'], 'LDFLAGS':options['LDFLAGS'],
'CPPFLAGS':options['CPPFLAGS'], 'CPPFLAGS':options['CPPFLAGS'],
'PYTHONPATH':options['PYTHONPATH'], 'PYTHONPATH': ':'.join(sys.path + [workdir]),
'PKG_CONFIG_PATH': options['PKG_CONFIG_PATH'], 'PKG_CONFIG_PATH': options['PKG_CONFIG_PATH'],
} }
os.chdir(workdir) os.chdir(workdir)
try: try:
call([python_bin, 'build.py', 'build', '--use_syswx', '--release', call([python_bin, 'build.py', 'build', '--use_syswx', '--release',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment