Skip to content

Commit 1ef24ec

Browse files
committed
Fix deps for Python 2.7/Ubuntu. Fixes #119.
1 parent 4e5bf2c commit 1ef24ec

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

README.rst

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,26 @@ 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 16.04,| Python 2| ``apt-get install python-dev python-cffi libxml2-dev libxslt1-dev libssl-dev`` |
40-
| 18.04 | | ``python-lxml python-cryptography python-openssl python-certifi python-defusedxml`` |
41-
+--------------+---------+-------------------------------------------------------------------------------------------------+
42-
| Ubuntu 16.04,| Python 3| ``apt-get install python3-dev python3-cffi libxml2-dev libxslt1-dev libssl-dev`` |
43-
| 18.04 | | ``python3-lxml python3-cryptography python3-openssl python3-certifi python3-defusedxml`` |
44-
+--------------+---------+-------------------------------------------------------------------------------------------------+
45-
| Ubuntu 14.04 | Python 2| ``apt-get install python-dev python-cffi libxml2-dev libxslt1-dev libssl-dev`` |
46-
+--------------+---------+-------------------------------------------------------------------------------------------------+
47-
| Ubuntu 14.04 | Python 3| ``apt-get install python3-dev python3-cffi libxml2-dev libxslt1-dev libssl-dev`` |
48-
+--------------+---------+-------------------------------------------------------------------------------------------------+
49-
| Ubuntu 12.04 | Python 2| ``apt-get install python-dev libxml2-dev libxslt1-dev libssl-dev; pip install cffi`` |
50-
+--------------+---------+-------------------------------------------------------------------------------------------------+
51-
| Red Hat | Python 2| ``yum install python-devel python-cffi libxml2-devel libxslt1-devel openssl-devel`` |
52-
+--------------+---------+-------------------------------------------------------------------------------------------------+
53-
| Red Hat | Python 3| ``yum install python3-devel python3-cffi libxml2-devel libxslt1-devel openssl-devel`` |
54-
+--------------+---------+-------------------------------------------------------------------------------------------------+
55-
| OS X/Homebrew| | ``xcode-select --install; brew install openssl;`` |
56-
| | | ``export LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include"`` |
57-
+--------------+---------+-------------------------------------------------------------------------------------------------+
36+
+--------------+---------+-------------------------------------------------------------------------------------------------------------+
37+
| OS | Python | Command |
38+
+==============+=========+=============================================================================================================+
39+
| Ubuntu 16.04,| Python 2| ``apt-get install python-dev python-cffi libxml2-dev libxslt1-dev libssl-dev libffi-dev`` |
40+
| 18.04 | | ``python-lxml python-cryptography python-openssl python-certifi python-defusedxml build-essential`` |
41+
+--------------+---------+-------------------------------------------------------------------------------------------------------------+
42+
| Ubuntu 16.04,| Python 3| ``apt-get install python3-dev python3-cffi libxml2-dev libxslt1-dev libssl-dev libffi-dev`` |
43+
| 18.04 | | ``python3-lxml python3-cryptography python3-openssl python3-certifi python3-defusedxml build-essential`` |
44+
+--------------+---------+-------------------------------------------------------------------------------------------------------------+
45+
| Ubuntu 14.04 | Python 2| ``apt-get install python-dev python-cffi libxml2-dev libxslt1-dev libssl-dev libffi-dev build-essential`` |
46+
+--------------+---------+-------------------------------------------------------------------------------------------------------------+
47+
| Ubuntu 14.04 | Python 3| ``apt-get install python3-dev python3-cffi libxml2-dev libxslt1-dev libssl-dev libffi-dev build-essential`` |
48+
+--------------+---------+-------------------------------------------------------------------------------------------------------------+
49+
| Red Hat | Python 2| ``yum install python-devel python-cffi libxml2-devel libxslt1-devel openssl-devel`` |
50+
+--------------+---------+-------------------------------------------------------------------------------------------------------------+
51+
| Red Hat | Python 3| ``yum install python3-devel python3-cffi libxml2-devel libxslt1-devel openssl-devel`` |
52+
+--------------+---------+-------------------------------------------------------------------------------------------------------------+
53+
| OS X/Homebrew| | ``xcode-select --install; brew install openssl;`` |
54+
| | | ``export LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include"`` |
55+
+--------------+---------+-------------------------------------------------------------------------------------------------------------+
5856

5957
Synopsis
6058
--------

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
'certifi >= 2015.11.20.1'
2222
],
2323
extras_require={
24-
':python_version == "2.7"': ['enum34 >= 1.0.4']
24+
':python_version == "2.7"': [
25+
'enum34 >= 1.0.4',
26+
'ipaddress >= 1.0.19, < 2'
27+
]
2528
},
2629
packages=find_packages(exclude=['test']),
2730
platforms=['MacOS X', 'Posix'],

0 commit comments

Comments
 (0)