-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Development Environment
Jeremy Nelson edited this page Apr 29, 2017
·
5 revisions
-
Download and install the latest Python 3 distribution (currently 3.6) from the Python website.
-
Create and Activate a Python Virtual Environment for Development from your OS command-line
python -m venv py3-dev source py3-dev/bin/activate # for Linux and MacOS py3-env\Scripts\activate # for Windows
-
Clone Alliance BIBCAT source code repository
git clone https://github.com/KnowledgeLinks/alliance-bibcat
Change to that directory
cd alliance-bibcat
-
Init and Update the BIBCAT and RDFW submodules
git submodule init git submodule update
-
Change to the
development
branch and pull in latest changesgit checkout -b development git pull origin development
-
Install Python Dependencies using
pip
pip install -r requirements.txt
-
Make an
instance
directory for development configurationmkdir instance
-
Create a
config.py
filetouch config.py
-
Open
config.py
in a text editor and the following lines to the top of the file:import os import sys sys.path.append(os.path.abspath(os.path.dirname(__file__))) from example_instance.config import *
-
Add these configuration values to
config.py