Mac OS X的PyGTK在哪里? [英] Where is PyGTK for Mac OS X?

查看:171
本文介绍了Mac OS X的PyGTK在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前的Mac OS X和PyGTK的python是否有二进制文件?我在多个桌面环境(mac,windows,gnome)中工作,并且确实认为python缺少跨平台GUI是个问题.有谁知道在哪里可以找到Mac的PyGTK和GTK的内置版本? 我无法克隆git存储库,它会一直超时.

Is there a binary out there for the current mac os x, python for PyGTK? I work with multiple desktop environments (mac, windows, gnome) and really consider python's lack of cross platform GUI's a problem. Does anyone know where I can find a built version of PyGTK and GTK for Mac? I cant clone the git repository, it keeps timing out.

推荐答案

我不使用macports,但是jhbuild似乎对我有用.以下是我已完成的步骤.

I don't use macports but it seems that jhbuild works for me. Below is the steps that I've done.

  1. https://raw.github.com/jralls/gtk-osx-build/master/gtk-osx-build-setup.sh下载gtk-osx-build-setup.sh并将其保存到您的主目录中.
  2. 启动终端并导航到您的主目录,然后运行命令sh gtk-osx-build-setup.sh
  3. shell脚本将警告您不要将~/.local/bin添加到您的环境变量中,请编辑位于主目录中的.profile文件,然后将/Users/<username>/.local/bin添加到您的环境变量中.要了解有关如何编辑此文件的更多信息,请检出:http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/
  4. 然后,执行~/.local/bin/jhbuild bootstrap命令.它将下载并安装一些必要的实用程序.
  5. 在以下位置下载并安装gtk + osx框架的测试版:http://ftp.imendio.com/pub/imendio/gtk-osx/Gtk-Framework-2.14-LATEST.dmg
  6. 在安装meta-gtk-osx-python之前,您需要构建并安装一些其他软件包,而jhbuild不会自动安装,因此我所做的是通过执行以下命令安装了libpng:~/.local/bin/jhbuild build libpng
  7. 您还需要安装libtiff,所以请执行以下命令:~/.local/bin/jhbuild build libtiff
  8. ,还需要gtk-doc,因此:~/.local/bin/jhbuild build gtk-doc
  9. 最后,您现在可以执行以下操作来安装meta-gtk-osx-python:~/.local/bin/jhbuild build meta-gtk-osx-python
  1. download gtk-osx-build-setup.sh from: https://raw.github.com/jralls/gtk-osx-build/master/gtk-osx-build-setup.sh and save it to your home directory.
  2. fire up terminal and navigate to your home directory and run the command sh gtk-osx-build-setup.sh
  3. the shell script will warn you that ~/.local/bin isn't added to your environment variable to do this, edit your .profile file located at your home directory and /Users/<username>/.local/bin to your environment variable. to know more on how to edit this file check out: http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/
  4. after that, do a ~/.local/bin/jhbuild bootstrap command. it will download and install some necessary utilities.
  5. download and install the beta version of the gtk+ osx framework at: http://ftp.imendio.com/pub/imendio/gtk-osx/Gtk-Framework-2.14-LATEST.dmg
  6. before installing the meta-gtk-osx-python, you need to build and install some other packages that jhbuild doesn't install automatically, so what i did was i installed libpng by doing the command: ~/.local/bin/jhbuild build libpng
  7. you also need to install libtiff so do the command: ~/.local/bin/jhbuild build libtiff
  8. and also gtk-doc is needed so: ~/.local/bin/jhbuild build gtk-doc
  9. and finally you can now install meta-gtk-osx-python by doing a: ~/.local/bin/jhbuild build meta-gtk-osx-python

让我知道它是否有效.

这篇关于Mac OS X的PyGTK在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆