summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--INSTALL5
-rw-r--r--INSTALL.pip25
-rw-r--r--osqa-requirements.txt9
4 files changed, 41 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 69133c46..16d8a5f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,7 @@
*.pyc
*.swp
*.log
+env
nbproject
+pip-log.txt
settings_local.py
diff --git a/INSTALL b/INSTALL
index 72cc76bf..60e3617c 100644
--- a/INSTALL
+++ b/INSTALL
@@ -16,6 +16,11 @@ D. CUSTOMIZATION
A. PREREQUISITES
-----------------------------------------------
+
+You can either follow the directions in this section, or you can read
+INSTALL.pip, which is simpler and creates a sandbox for your Python
+environment.
+
0. We recommend you to use python-setuptools to install pre-requirement libraries.
If you haven't installed it, please try to install it first.
e.g, sudo apt-get install python-setuptools
diff --git a/INSTALL.pip b/INSTALL.pip
new file mode 100644
index 00000000..e04be3db
--- /dev/null
+++ b/INSTALL.pip
@@ -0,0 +1,25 @@
+* Install virtualenv and pip:
+ easy_install virtualenv
+ easy_install pip
+
+* Install mysql-python system-wide, because we can't install it with pip
+ sudo easy_install mysql-python
+ or
+ sudo apt-get install python-mysqldb
+
+ For more information about why pip can't automatically install the
+ MySQL driver, see this message:
+ http://groups.google.com/group/python-virtualenv/msg/ea988085951c92b3
+
+* Install sphinxsearch. See:
+ [optional]
+ http://sphinxsearch.com/downloads.html
+ http://www.hackido.com/2009/01/install-sphinx-search-on-ubuntu.html
+ git://github.com/johnl/deb-sphinx-search.git
+
+* Run pip installation:
+ pip install -E env -r osqa-requirements.txt
+
+* Notice that you will need to register with recaptcha.net and receive
+ recaptcha public and private keys that need to be saved in your
+ settings_local.py file
diff --git a/osqa-requirements.txt b/osqa-requirements.txt
new file mode 100644
index 00000000..66a37fbe
--- /dev/null
+++ b/osqa-requirements.txt
@@ -0,0 +1,9 @@
+django>=1.1 # Note: email subscription sender job requires Django 1.1, everything else works with 1.0
+#mysql-python # Can't use with pip, see http://groups.google.com/group/python-virtualenv/msg/ea988085951c92b3
+python-openid
+html5lib
+markdown2
+git+git://github.com/robhudson/django-debug-toolbar.git
+git+git://github.com/dcramer/django-sphinx.git
+svn+http://recaptcha-django.googlecode.com/svn/trunk/
+svn+http://recaptcha.googlecode.com/svn/trunk/recaptcha-plugins/python/