Commit 930989d5 authored by Mathieu Courcelles's avatar Mathieu Courcelles

Wrote script and downloaded python dependancies for easier deployment in Windows system.

parent 5b115992
This diff is collapsed.
cd win32
REM Installing CLMSVault dependancies
pip install MySQL_python-1.2.5-cp27-none-win32.whl
pip install biopython-1.65-cp27-none-win32.whl
pip install numpy-1.9.2+mkl-cp27-none-win32.whl
pip install scipy-0.16.0-cp27-none-win32.whl
pip install setuptools-17.1.1-py2.py3-none-any.whl
cd ..
cd ..
cd requirements
pip install -r production_win.txt
cd ..
cd win64
REM Installing CLMSVault dependancies
pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl
pip install biopython-1.65-cp27-none-win_amd64.whl
pip install numpy-1.9.2+mkl-cp27-none-win_amd64.whl
pip install scipy-0.16.0-cp27-none-win_amd64.whl
pip install setuptools-17.1.1-py2.py3-none-any.whl
cd ..
cd ..
cd requirements
pip install -r production_win.txt
cd ..
REM Python 2.7 must be installed for this script to work
cd install_dep
REM Update pip
python get-pip.py
REM Prepare Virtual environment
pip install virtualenv
easy_install -U distribute
pip install virtualenvwrapper-win
REM Creating virtual environnment for CLMSVault
mkvirtualenv CLMSVault_venv
REM Activating virutal environment of CLMSVault
workon CLMSVault_venv
...@@ -9,40 +9,32 @@ Standalone on Windows 7 instruction: ...@@ -9,40 +9,32 @@ Standalone on Windows 7 instruction:
Notes: Notes:
-You will need administrator rights on your computer to install Python and its libraries. -You will need administrator rights on your computer to install Python and its libraries.
1. Download and install Python 2.7 and the following python libraries
-Python 2.7 (https://www.python.org/downloads/) (Do not use Python 3, this code is not compatible!!)
1. Extract CLMSVault_v1.zip archive to C:\CLMSVault
2. Download and install Python 2.7 and the following python libraries 2. Extract CLMSVault_v1.zip archive to C:\CLMSVault
-Python 2.7 (https://www.python.org/downloads/) (Do not use Python 3, this code is not compatible!!)
64 bits OS 3. Open Windows console
-MySQL-python-1.2.5.win-amd64-py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
-biopython-1.64.win-amd64-py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
-numpy-MKL-1.9.1.win-amd64‑py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
-scipy-0.14.0.win‑amd64‑py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
-setuptools-5.8.win-amd64‑py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
-pip-1.5.6.win-amd64‑py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
32 bits OS
-MySQL-python-1.2.5.win32-py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
-biopython-1.64.win32-py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
-numpy-MKL-1.9.1.win32-py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
-scipy-0.14.0.win32‑py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
-setuptools-5.8.win32‑py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
-pip-1.5.6.win32‑py2.7.exe (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
4. Open Windows console
-Open the Start menu -Open the Start menu
-Type in the search box: -Type in the search box:
cmd.exe cmd.exe
5. Navigate to the CLMSVault directory by typing: 4. Navigate to the CLMSVault directory by typing:
cd C:\CLMSVault cd C:\CLMSVault
6. Install the remaining Python libraries by typing: 5. Install the remaining Python libraries by typing:
pip install -r requirements\production_win.txt install_win.bat
then:
win32 for 32-bit Windows system
or
7. Add environment variables win64 for 64-bit Windows system
6. Add environment variables
-Open the Start menu -Open the Start menu
-Type in the search box: -Type in the search box:
env env
...@@ -54,13 +46,17 @@ env ...@@ -54,13 +46,17 @@ env
-Variable value: cur%pf+1k5=mf2d=jaurhr(djv&ve&&y%4px=pouav)0ytn@7- -Variable value: cur%pf+1k5=mf2d=jaurhr(djv&ve&&y%4px=pouav)0ytn@7-
-You can generate a new secret_key here: http://www.miniwebtool.com/django-secret-key-generator/ -You can generate a new secret_key here: http://www.miniwebtool.com/django-secret-key-generator/
8. Edit settings files 7. Edit settings files
.\CLMSVault\settings\local.py (ADMINS, TIME_ZONE) .\CLMSVault\settings\local.py (ADMINS, TIME_ZONE)
9. Start the application web server from the console: 8. Now everytime you want to start CLMSVault, navigate to the CLMSVault directory by typing:
cd C:\CLMSVault
workon CLMSVault_venv
CLMSVault_win.bat CLMSVault_win.bat
10. Use your web browser to access CLMSVault at: http://localhost:8000 On the first start, you need to allow access to Windows Firewall to python.exe.
9. Use your web browser to access CLMSVault at: http://localhost:8000
Login with the following administrator user: Login with the following administrator user:
user name: clmsvault user name: clmsvault
......
-r base.txt # includes the base.txt requirements file -r base.txt
\ No newline at end of file \ No newline at end of file
-r base_win.txt # includes the base_win.txt requirements file -r base_win.txt
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment