Last active
June 29, 2016 17:56
-
-
Save ColinDuquesnoy/26ebb387e33ec4af95e82f50913dbde1 to your computer and use it in GitHub Desktop.
Setup my development environment on Linux (distro agnostic)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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