2008年12月4日 星期四

Easy_Install 與Buildout介紹

Easy_install 主要是Python 用來Download,install,uninstall Python package Buildout 也是Python 安裝套件的工具,不過它是把一堆套件打成一包並檢查相依性 Easy_intall 介紹 -
  1. where to get more information http://pypi.python.org/pypi/setuptools#windows
  2. Python 安裝的package 都放在 D:\"your python dict"\Lib\site-packages 下
  3. 找一下 網頁最下方看自己是python 哪一版,windows 版都是 exe file,只要執行它就好了
  4. 如果有安裝過前一版本,記得delete 所有的 setuptools*.eg/site-packages 下的setuptools
    for examples:
    site-packages/setuptools-0.6c9-py2.5.egg-info/
    /site-packages/setuptools
  5. 新增 path ,如 D:\Python25\Scripts 到你的windows 環境中 ( 方法:控制台-->系統-->進階-->環境變數-->path)
  6. 用DOS mode, key " easy_install --help" ,如果有訊息,應該就可以用了
  7. Easy_install 細節說明 http://peak.telecommunity.com/DevCenter/EasyInstall
  8. 要安裝程式 easy_install xxx
Buildout介紹 -

Setting Up Your Environment:

Before we dive into the fun that is Buildout we need to ensure that we have a few things. Firstly make sure you have the following installed on your system:

Once you have these run the following commands to grab the tools you'll need to setup your buildout:

$: python ez_setup.py

This will download and install the setuptools and easy_install script which you will next use to grab the final tranche of setup tools.

$: easy_install -U ZopeSkel

Now that you have everything, run the following command:

$: paster create --list-templates

Paster is a tool that creates a skeleton of a project depending on the template that you feed it. So long as the templates for plone3_buildout and plone you should be fine.


沒有留言: