Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…

#!/usr/bin/env python2 | |
import sys | |
import os | |
import argparse | |
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "deps/readies")) | |
import paella | |
#---------------------------------------------------------------------------------------------- | |
class RedisTimeSeriesSetup(paella.Setup): | |
def __init__(self, nop=False): | |
paella.Setup.__init__(self, nop) | |
def common_first(self): | |
self.setup_pip() | |
self.pip_install("wheel") | |
self.pip_install("setuptools --upgrade") | |
self.install("git jq curl") | |
def debian_compat(self): | |
self.install("build-essential") | |
def redhat_compat(self): | |
self.group_install("'Development Tools'") | |
self.install("redhat-lsb-core") | |
def fedora(self): | |
self.group_install("'Development Tools'") | |
def macosx(self): | |
if sh('xcode-select -p') == '': | |
fatal("Xcode tools are not installed. Please run xcode-select --install.") | |
self.install("redis") | |
def common_last(self): | |
if not self.has_command("ramp"): | |
self.pip_install("git+https://github.com/RedisLabs/RAMP@master") | |
self.pip_install("-r tests/requirements.txt") | |
#---------------------------------------------------------------------------------------------- | |
parser = argparse.ArgumentParser(description='Set up system for build.') | |
parser.add_argument('-n', '--nop', action="store_true", help='no operation') | |
args = parser.parse_args() | |
RedisTimeSeriesSetup(nop = args.nop).setup() |