Skip to content

Instantly share code, notes, and snippets.

@garthk
Created October 8, 2015 23:47
Show Gist options
  • Save garthk/7d8da46d2484860ed561 to your computer and use it in GitHub Desktop.
Save garthk/7d8da46d2484860ed561 to your computer and use it in GitHub Desktop.
Generate wheels for supervisord
#!/bin/sh
# Build meld3 and supervisor wheels on CentOS
# Ship wheels/*.whl
#
# Installation doc then becomes:
#
# yum install -y epel-release
# yum install -y --enablerepo=epel python-pip
# pip install meld*.whl supervisor*.whl
#
# Use ONLY if they can't do this:
# yum install -y epel-release
# yum install -y --enablerepo=epel python-pip
# pip install --trusted-host pypi.python.org supervisor==3.1.3
yum install -y epel-release
yum install -y --enablerepo=epel git python-pip
pip install wheel
SRC=$PWD/src
WHEELS=$PWD/wheels
MELD=1.0.2
SUPERVISOR=3.1.3
mkdir -p $SRC $WHEELS
cd $SRC
git clone https://github.com/Supervisor/meld3.git
git clone https://github.com/Supervisor/supervisor.git
cd $SRC/meld3
git checkout $MELD
python setup.py sdist bdist_wheel
cp dist/*.whl $WHEELS/
cd $SRC/supervisor
git checkout $SUPERVISOR
python setup.py sdist bdist_wheel
cp dist/*.whl $WHEELS/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment