Getting Autobuild

From Second Life Wiki
Revision as of 10:29, 2 June 2011 by Boroondas Gupte (talk | contribs) (content from Autobuild#Getting_Autobuild to be transcluded there and at Viewer 2 Microsoft Windows Builds#Install_Autobuild later on)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Autobuild is available as a PyPI package:

easy_install autobuild

or

pip install autobuild

of if you don't have pip or easy_install

hg clone http://hg.secondlife.com/autobuild
cd autobuild
python setup.py install
KBnote.png Note: On Windows there is no need to perform this install step. Stop here and resume following the Windows build instructions. python setup.py install does not work correctly. You will need to edit/rename some files to make it work! See Autobuild/Cygwin for an alternative.

You may need administrative privilege on your system to install into system command directories.

KBnote.png Note: If you are using Cygwin on Windows, you must also add your Python scripts directory (for example C:/Program Files/python27/Scripts) to your PATH. If you have further problems, please see Autobuild/Cygwin
KBtip2.png Tip: If you do not have administrative privilege on your system, or for any reason you wish to avoid adding autobuild into system-level Python or command directories, you can use virtualenv, e.g.:
mkdir ~/virtualenvs  # or any directory for your Python-package environments
VENV=~/virtualenvs/autobuild
virtualenv "$VENV"
. "$VENV/bin/activate"

Then your pip install autobuild command will install autobuild under $VENV instead of into system directories. (Note that this pip install command will work either way. If you have an active virtualenv, it will install into the virtualenv; if not it will attempt to install into system directories.)