On 14-12-23 12:23 PM, Philip Chimento wrote:
On Tue, Dec 23, 2014 at 12:50 PM, Jim Charlton <char...@gmail.com <mailto:char...@gmail.com>> wrote:

    I am building gtk-osx on MAC Yosemite 10.10

    1. gtk-osx-build-setup.sh

    2. export PATH=$PATH:/Users/chartech/.local/bin

    3. Added lines

    checkoutroot =
    os.path.expanduser("/Applications/Drumroaster/gtk/Source/gtk")
    prefix = os.path.expanduser("/Applications/Drumroaster/gtk/inst")
    os.environ["ARCHFLAGS"] = "-arch x86_64"

    to .jhbuildrc-custom as I want the installation in a non-standard
    location.

    4. jhbuild bootstrap
    5. alias
    jhbuild="PATH=/Applications/Drumroaster/gtk/inst/bin:$PATH jhbuild"
    6. jhbuild build python
    7. jhbuild build meta-gtk-osx-bootstrap

    In step 7 I get a configure error while building itstool.
    "configure: error: Python module libxml2 is needed to run this
    package"

    I have run this sequence before on MAVERICKS (10.9.5) with no
    problem.  Must be something about the way the python libs are
    being installed or used but I cannot figure it out.

    Any help would be appreciated.


You may need to set the PYTHONPATH environment variable to include /Applications/Drumroaster/gtk/inst/lib/python2.7/site-packages (check that there is a libxml2.py file there.)

Regards,
--
Philip
If I do
jhbuild shell
set | grep PYTH
I get
PYTHON=/Applications/Drumroaster/gtk/inst/bin/python
PYTHONPATH=/Applications/Drumroaster/gtk/inst/lib/python2.7:/Applications/Drumroaster/gtk/inst/lib/python2.7/site-packages/gtk-2.0:/Applications/Drumroaster/gtk/inst/lib/python2.7/site-packages
PYTHON_SITE_PACKAGES=/Applications/Drumroaster/gtk/inst/lib/python2.7/site-packages

which would seem to indicate that PYTHONPATH is set correctly in the jhbuild shell. And yes, /Applications/Drumroaster/gtk/inst/lib/python2.7/site-packages/libxml2.py does exist.

strange...

jim...
_______________________________________________
Gtk-osx-devel-list mailing list
Gtk-osx-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-osx-devel-list

Reply via email to