1. Van Lindberg
  2. stagehand

Source

stagehand / constants.py

"""
stagehand.constants

Config values and constants for stagehand. This file should not
import anything that is not in the stdlib.

Copyright 2010-2011 Van Lindberg. Released under the BSD license.

"""

# stdlib imports
import sys
import os

# Find out what the binaries directory is named
from distutils.command.install import INSTALL_SCHEMES
uname = os.name if (os.name in INSTALL_SCHEMES) else 'unix_prefix'
LOCAL_BIN_DIR = INSTALL_SCHEMES[uname]['scripts'].split('/')[-1]
del INSTALL_SCHEMES, uname

# Get the extension if necessary
if sys.executable.endswith('.exe'):
  LOCAL_EXT = '.exe'
  WIN32 = True
else: 
  LOCAL_EXT = ''
  WIN32 = False

QUIET = False
USE_PYTHON_VERSION = '2.7'
TESTING_VM = 'user@172.16.32.128' # Local VM to use for testing
PY_VERSIONS_PAGE = 'http://python.org/ftp/python/'
DISTRIBUTE_SETUP = 'http://python-distribute.org/distribute_setup.py'
VENV_APPS_DIR = '/usr/local/lib/venv'
SYMLINK_PATH = '/usr/local/bin'
if 'VIRTUAL_ENV' in os.environ: LOCAL_VENV = os.environ['VIRTUAL_ENV']
else: LOCAL_VENV = None

APT_PREREQS = ['libbz2-dev', 'libexpat1-dev', 'libdb4.8-dev',
              'libsqlite3-dev', 'libreadline-dev', 'binutils',
              'libncurses5-dev', 'libjpeg-dev', 'libtiff-dev',
              'libpng-dev', 'libssl-dev', 'zlib1g-dev', 'gcc',
              'libcurl4-gnutls-dev', 'libgnutls-dev', 'curl',
              'libpcre3-dev', 'sudo', 'build-essential',  
              'libxml2', 'libxml2-dev', 'python-dev',  'psmisc',
              'unattended-upgrades', 'ssh', 'swig', 'openssl',
              'python-software-properties', 'git', 'libevent-2.0',
              'libevent-dev', 'libevent-pthreads-2.0',
              'libev4', 'libev-dev']

VENV_APPS = ['mercurial', 'fabric']

# Virtualenv default options
GLOBAL_SITE_PACKAGES = False
USE_DISTRIBUTE = True

# Nginx options
NGINX_PPA = 'ppa:nginx/stable'
NGINX_APT_PACKAGES = ['nginx', 'nginx-common']
#~