Skip to content

Instantly share code, notes, and snippets.

@carlcrott
Last active December 25, 2015 17:59
Show Gist options
  • Save carlcrott/7017415 to your computer and use it in GitHub Desktop.
Save carlcrott/7017415 to your computer and use it in GitHub Desktop.
The x3 repo is the third incarnation of the Integrated Plasmonics experiment interface.
#### Installation:
<pre>
# get x3
$ sudo apt-get -y install python-virtualenv
$ cd ~/django_projects/
$ git clone [email protected]:IntegratedPlasmonics/x3.git
# configure + install packages
$ pip install virtualenvwrapper
$ export WORKON_HOME=~/.virtualenvs
$ mkdir -p $WORKON_HOME
$ echo "./usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc && source ~/.bashrc
$ mkvirtualenv x3
$ pip install ~/django_projects/x3 # install packages from x3/setup.py
</pre>
## create + sync DB
<pre>
$ ./manage.py syncdb --all
$ ./manage.py migrate [--fake]
</pre>
## start working
<pre>
$ workon x3
$ git checkout -b developer_name # EX: git checkout -b carl
$ python manage.py runserver
# do work!
</pre>
## to stop working
<pre>
$ deactivate
</pre>
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="x3",
description="The x3 repo is the third incarnation of the Integrated Plasmonics experiment interface",
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django==1.5.1',
'MySQL-python==1.2.3',
'South==0.8.2',
'argparse==1.2.1',
'distribute==0.6.24',
'django-allauth==0.13.0',
'django-uni-form==0.9.0',
'oauthlib==0.6.0',
'python-openid==2.2.5',
'requests==2.0.0',
'requests-oauthlib==0.4.0'
],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment