Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system-setup.py fix #43

Merged
merged 1 commit into from
Dec 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
system-setup.py fix
  • Loading branch information
rafie authored Dec 17, 2020
commit e0850effd17fa388f5e8d5d361d9a919d5273146
26 changes: 13 additions & 13 deletions sbin/system-setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import os
import argparse

ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
sys.path.insert(0, os.path.join(ROOT, "deps/readies"))
HERE = os.path.abspath(os.path.dirname(__file__))
ROOT = os.path.abspath(os.path.join(HERE, ".."))
READIES = os.path.join(ROOT, "deps/readies")
sys.path.insert(0, READIES)
import paella

#----------------------------------------------------------------------------------------------
Expand All @@ -17,10 +19,10 @@ def __init__(self, nop=False):
def common_first(self):
self.install_downloaders()
self.setup_pip()
self.pip3_install("wheel virtualenv")
self.pip3_install("setuptools --upgrade")
self.pip_install("wheel virtualenv")
self.pip_install("setuptools --upgrade")

self.pip3_install("-r %s/deps/readies/paella/requirements.txt" % ROOT)
self.pip_install("-r %s/paella/requirements.txt" % READIES)
self.install("git zip unzip")

def debian_compat(self):
Expand All @@ -30,9 +32,7 @@ def debian_compat(self):

def redhat_compat(self):
self.install("redhat-lsb-core")

# enable utf8 locale
self.run("sed -i 's/^\(override_install_langs=\)/# \1/' /etc/yum.conf")
self.run("%s/bin/enable-utf8" % READIES)
self.run("yum reinstall -y glibc-common")

def fedora(self):
Expand All @@ -42,11 +42,11 @@ def macosx(self):
self.install_gnu_utils()

def common_last(self):
self.pip3_install("--no-cache-dir git+https://github.com/Grokzen/redis-py-cluster.git@master")
self.pip3_install("--no-cache-dir git+https://github.com/RedisLabsModules/RLTest.git@master")
self.pip3_install("git+https://github.com/RedisGears/gears-cli.git")
self.pip3_install("-r %s/requirements.txt" % ROOT)
self.pip3_install("PyMySQL")
self.pip_install("--no-cache-dir git+https://github.com/Grokzen/redis-py-cluster.git@master")
self.pip_install("--no-cache-dir git+https://github.com/RedisLabsModules/RLTest.git@master")
self.pip_install("git+https://github.com/RedisGears/gears-cli.git")
self.pip_install("-r %s/requirements.txt" % ROOT)
self.pip_install("PyMySQL")

#----------------------------------------------------------------------------------------------

Expand Down