Skip to content

Instantly share code, notes, and snippets.

@ColinDuquesnoy
Last active June 29, 2016 17:56
Show Gist options
  • Save ColinDuquesnoy/26ebb387e33ec4af95e82f50913dbde1 to your computer and use it in GitHub Desktop.
Save ColinDuquesnoy/26ebb387e33ec4af95e82f50913dbde1 to your computer and use it in GitHub Desktop.
Setup my development environment on Linux (distro agnostic)
#!/bin/bash
# Native packages to install before running this script:
# - python3
# - python3-virtualenv
# - python3-pip
# - git
# ---------------------------------------
# Create HackEdit development environment
# ---------------------------------------
# create and enable virtualenv for HackEdit
mkdir virtualenvs
virtualenv virtualenvs/hackedit
source virtualenvs/hackedit/bin/activate
# install PyQt5
pip install PyQt5
# clone and install pyqode
for package in 'pyqode.qt' 'pyqode.core' 'pyqode.python' 'pyqode.rst' 'pyqode.json' 'pyqode.cobol'
do
git clone https://github.com/pyQode/${package}
pushd ${package}
pip install -e .
popd
done
# clone hackedit and its official plugins
for package in 'hackedit' 'hackedit-python' 'hackedit-cobol'
do
# clone repo
git clone https://github.com/HackEdit/${package}
pushd ${package}
# install in development mode
pip install -e .
# install requirements
if [ -f "requirements.txt" ]; then
pip install -r requirements.txt
fi
# install any development dependencies
if [ -f "requirements-dev.txt" ]; then
pip install -r requirements-dev.txt
fi
# install any optional dependencies
if [ -f "requirements-opt.txt" ]; then
pip install -r requirements-opt.txt
fi
popd
done
# ---------------------------------------
# OpenCobolIDE
# ---------------------------------------
# create and enable virtualenv for ocide
virtualenv virtualenvs/ocide
source virtualenvs/ocide/bin/activate
# install PyQt5
pip install PyQt5
# install pyqode
for package in 'pyqode.qt' 'pyqode.core' 'pyqode.python' 'pyqode.rst' 'pyqode.json' 'pyqode.cobol'
do
pushd ${package}
pip install -e .
popd
done
# clone repo
git clone https://github.com/OpenCobolIDE/OpenCobolIDE
pushd OpenCobolIDE
# install in development mode
pip install -e .
# install requirements
if [ -f "requirements.txt" ]; then
pip install -r requirements.txt
fi
# install any development dependencies
if [ -f "requirements-dev.txt" ]; then
pip install -r requirements-dev.txt
fi
# install any optional dependencies
if [ -f "requirements-opt.txt" ]; then
pip install -r requirements-opt.txt
fi
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment