bootstrap: _rpm_common.sh, centos fixes

This commit is contained in:
Jakub Warmuz 2015-06-18 13:55:32 +00:00
parent 67768641cc
commit 9b4cff8cd6
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA
4 changed files with 33 additions and 44 deletions

20
bootstrap/_rpm_common.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/sh
# Tested with:
# - Fedora 22 (x64)
# - Centos 7 (x64: on AWS EC2 t2.micro, DigitalOcean droplet)
# "git-core" seems to be an alias for "git" in CentOS 7 (yum search fails)
yum install -y \
git-core \
python \
python-devel \
python-virtualenv \
python-devel \
gcc \
swig \
dialog \
augeas-libs \
openssl-devel \
libffi-devel \
ca-certificates \

View file

@ -1,19 +0,0 @@
#!/bin/sh
# Tested with: Centos 7 on AWS EC2 t2.micro (x64)
yum install -y \
git \
python \
python-devel \
python-virtualenv \
python-devel \
gcc \
swig \
dialog \
augeas-libs \
openssl-devel \
libffi-devel \
ca-certificates \
python-setuptools \
readline-devel

1
bootstrap/centos.sh Symbolic link
View file

@ -0,0 +1 @@
_rpm_common.sh

View file

@ -1,18 +0,0 @@
#!/bin/sh
# Tested with:
# - Fedora 22 (x64)
yum install -y \
git-core \
python \
python-devel \
python-virtualenv \
python-devel \
gcc \
swig \
dialog \
augeas-libs \
openssl-devel \
libffi-devel \
ca-certificates \

1
bootstrap/fedora.sh Symbolic link
View file

@ -0,0 +1 @@
_rpm_common.sh

View file

@ -70,12 +70,23 @@ Mac OSX
sudo ./bootstrap/mac.sh
Centos 7
--------
.. code-block:: shell
sudo ./bootstrap/centos.sh
For installation run this modified command (note the trailing
backslash):
.. code-block:: shell
SWIG_FEATURES="-includeall -D__`uname -m`__-I/usr/include/openssl" \
./venv/bin/pip install -r requirements.txt functools32
Installation
============
@ -84,13 +95,6 @@ Installation
virtualenv --no-site-packages -p python2 venv
./venv/bin/pip install -r requirements.txt
Installation on Centos 7
============
.. code-block:: shell
virtualenv --no-site-packages -p python2 venv
env SWIG_FEATURES="-cpperraswarn -includeall -D__`uname -m`__ -I/usr/include/openssl" ./venv/bin/python setup.py install
Usage
=====