Skip to content

Commit b4770bd

Browse files
committed
Update dependency installation instructions
Avoid installing compiler toolchain on Linux
1 parent f86be0c commit b4770bd

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

README.rst

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,18 @@ Note: SignXML depends on `lxml <https://github.com/lxml/lxml>`_ and `cryptograph
3333
<https://github.com/pyca/cryptography>`_, which in turn depend on `OpenSSL <https://www.openssl.org/>`_, `LibXML
3434
<http://xmlsoft.org/>`_, and Python tools to interface with them. You can install those as follows:
3535

36-
+--------------+---------+---------------------------------------------------------------------------------------------+
37-
| OS | Python | Command |
38-
+==============+=========+=============================================================================================+
39-
| Ubuntu | Python 2| ``apt-get install python-dev python-cffi libxml2-dev libxslt1-dev libssl-dev libffi-dev`` |
40-
| | | ``python-lxml python-cryptography python-openssl python-certifi build-essential`` |
41-
+--------------+---------+---------------------------------------------------------------------------------------------+
42-
| Ubuntu | Python 3| ``apt-get install python3-dev python3-cffi libxml2-dev libxslt1-dev libssl-dev libffi-dev`` |
43-
| | | ``python3-lxml python3-cryptography python3-openssl python3-certifi build-essential`` |
44-
+--------------+---------+---------------------------------------------------------------------------------------------+
45-
| Red Hat | Python 2| ``yum install python-devel python-cffi libxml2-devel libxslt1-devel openssl-devel`` |
46-
+--------------+---------+---------------------------------------------------------------------------------------------+
47-
| Red Hat | Python 3| ``yum install python3-devel python3-cffi libxml2-devel libxslt1-devel openssl-devel`` |
48-
+--------------+---------+---------------------------------------------------------------------------------------------+
49-
| Mac OS | Homebrew| Install `Homebrew <https://brew.sh>`_, then run ``brew install python``. |
50-
| | Python | |
51-
+--------------+---------+---------------------------------------------------------------------------------------------+
36+
+--------------+---------------------------------------------------------------------------------------------+
37+
| OS | Command |
38+
+==============+=============================================================================================+
39+
| Ubuntu | ``apt-get install --no-install-recommends python3-pip python3-wheel python3-setuptools`` |
40+
| | ``python3-openssl python3-lxml python3-cffi`` |
41+
+--------------+---------------------------------------------------------------------------------------------+
42+
| Red Hat, | ``yum install python3-pip python3-pyOpenSSL python3-lxml`` |
43+
| Amazon Linux,| |
44+
| CentOS | |
45+
+--------------+---------------------------------------------------------------------------------------------+
46+
| Mac OS | Install `Homebrew <https://brew.sh>`_, then run ``brew install python``. |
47+
+--------------+---------------------------------------------------------------------------------------------+
5248

5349
Synopsis
5450
--------
@@ -69,7 +65,8 @@ SignXML uses the `lxml ElementTree API <https://lxml.de/tutorial.html>`_ to work
6965
To make this example self-sufficient for test purposes:
7066

7167
- Generate a test certificate and key using
72-
``openssl req -x509 -sha256 -nodes -subj "/CN=test" -days 1 -newkey rsa:2048 -keyout example.key -out example.pem``.
68+
``openssl req -x509 -sha256 -nodes -subj "/CN=test" -days 1 -newkey rsa:2048 -keyout example.key -out example.pem``
69+
(run ``yum install openssl`` on Red Hat).
7370
- Pass the ``x509_cert=cert`` keyword argument to ``XMLVerifier.verify()``. (In production, ensure this is replaced with
7471
the correct configuration for the trusted CA or certificate - this determines which signatures your application trusts.)
7572

0 commit comments

Comments
 (0)