|
HowTo_Setup_PackageIndex_Server
How to build an index from a directory containing tarballs, eggs, zip files and any other packaged files.
Phase-Implementation, installation, packageindex IntroductionThis page describes how to setup a local index to serve up packages that are needed for a Bungeni installation. 1. Installing repoze.bfgIt is advisable to install repoze.bfg into a virtualenv
$ sudo python ez_setup.py $ easy_install virtualenv $ virtualenv --no-site-packages pkgindex $ bin/easy_install -i http://dist.repoze.org/bfg/current/simple repoze.bfg Note:Your folder structure should now look like this: ~/pkgindex/bin
~/pkgindex/include
~/pkgindex/libSetting up repoze.pkgindexInstall this package in the root of the virtualenv: $ svn co https://bungeni-portal.googlecode.com/svn/repoze.pkgindex/trunk/ --username <username> Note:Your folder structure should now have one more folder and 6 extra files as follows: ~/pkgindex/repoze
~/pkgindex/demo.ini
~/pkgindex/deployment.ini
~/pkgindex/ez_setup.py
~/pkgindex/README.txt
~/pkgindex/setup.cfg
~/pkgindex/setup.pyCreate the index folder in the root of the virtualenv folder. Name it 'index' - Add any packages and sub-folders necessary for your installation into this folder. Using the interpreter from the virtualenv created when installing repoze.bfg, invoke the following command when inside the project directory against the setup.py: $ ../bin/python setup.py develop Run the package from the virtualenv root folder: $ ./bin/paster serve deployment.ini You can now access your package index at localhost:6543 or 127.0.0.1:6543 Note: You can modify the deployment.ini file to look for the index in a different folder other than the one named 'index' and to run on a different port other than the default '6543'. | |