From 15ce38f3163512f9338dbd01ff3ee3db4dc6e0d6 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 31 Jan 2023 12:44:42 -0500 Subject: [PATCH] remove bootstrap script Signed-off-by: Casey Bodley (cherry picked from commit 29d85b9de7179700f641760c897f0d36c11d947a) --- bootstrap | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100755 bootstrap diff --git a/bootstrap b/bootstrap deleted file mode 100755 index 186f6b7..0000000 --- a/bootstrap +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -set -x -set -e - -if [ -f /etc/debian_version ]; then - for package in python3-pip python3-virtualenv python3-dev libevent-dev libxml2-dev libxslt-dev zlib1g-dev libffi-dev python3-cffi python3-pycparser python3-cachecontrol; do - if [ "$(dpkg --status -- $package 2>/dev/null|sed -n 's/^Status: //p')" != "install ok installed" ]; then - # add a space after old values - missing="${missing:+$missing }$package" - fi - done - if [ -n "$missing" ]; then - echo "$0: missing required DEB packages. Installing via sudo." 1>&2 - sudo apt-get -y install $missing - fi - sudo apt-get remove -y python3-distro-info -fi -if [ -f /etc/redhat-release ]; then - for package in python3-pip python3-virtualenv python3-devel libevent-devel libxml2-devel libxslt-devel zlib-devel; do - if [ "$(rpm -qa $package 2>/dev/null)" == "" ]; then - missing="${missing:+$missing }$package" - fi - done - if [ -n "$missing" ]; then - echo "$0: missing required RPM packages. Installing via sudo." 1>&2 - sudo yum -y install $missing - fi -fi - -sudo pip3 install --upgrade --trusted-host apt-mirror.front.sepia.ceph.com setuptools cffi cachecontrol # address pip issue: https://github.com/pypa/pip/issues/6264 -virtualenv -p python3 --system-site-packages --download virtualenv - -# avoid pip bugs -./virtualenv/bin/pip install --upgrade pip - -# work-around change in pip 1.5 -./virtualenv/bin/pip install six -./virtualenv/bin/pip install -U pytest -./virtualenv/bin/pip install setuptools - -./virtualenv/bin/pip install -U -r requirements.txt - -# forbid setuptools from using the network because it'll try to use -# easy_install, and we really wanted pip; next line will fail if pip -# requirements.txt does not match setup.py requirements -- sucky but -# good enough for now -./virtualenv/bin/python setup.py develop -- 2.39.5