Tryton客户端的编译
-
trytond很容易就搞定. 但是想编译tryton(客户端),就没那么容易了.
鉴于很少有人用mac版本的(主要是中文乱码...), 这里只提起windows.
tryton的wiki上写了一些build的步骤,但是呢, 很容易出错....而且还编译不出来.
经过本步骤后, 你可以编译出来一个tryton的最后部署文件夹, 一个tryton的setup文件, 还有一个绿色版的, 打包压缩的tryton.exe
要求: windows xp(建议在虚拟机里,要不然很回滚), python环境(activestate的, [b]一定要是Python 2.5 [/b]), easy_install就位.
能折腾的精神.
[hr]折腾的分割线
1. 下载安装脚本, http://code.google.com/p/tryton/wiki/BuildingWinInstall br />2. 以命令行的方式运行这个脚本(这个脚本里写的tryton版本号是1.6, 可以手工的改).
3. 接下来就是一堆的库要装, 下一步下一步就可以了, 这个脚本经常会超时出错, 重新运行.
4. 有三个库/工具需要手工装:
4.1 安装psycopg2会有错误, 可以手工到 http://www.stickpeople.com/projects/python/win-psycopg/ 下载.
4.2 nsis需要装 [检测到链接无效,已移除] 需要把nsis的bin目录加入到系统path里.
4.3 lxml是个操蛋的东西, 同服务端一样, 需要 easy_install lxml=2.2.2
5. 别管这个脚本下载的tryton, 可以直接hg最新版本.
6. 冲到tryton代码下, python setup.exe py2exe
一切尽在.....反正要运行一会.
接下来的问题有:
1. 中文化.
2. 工具栏图标不显示.
下次再说吧.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login