Skip to content

Commit 960b3a1

Browse files
committed
Remove lxml version restriction
Add documentation on how to avoid libxml2 version incompatibilities
1 parent 96ad99e commit 960b3a1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Installation
8888

8989
* python 2.7 // python 3.6
9090
* [xmlsec](https://pypi.python.org/pypi/xmlsec) Python bindings for the XML Security Library.
91+
* [lxml](https://pypi.python.org/pypi/lxml) Python bindings for the libxml2 and libxslt libraries.
9192
* [isodate](https://pypi.python.org/pypi/isodate) An ISO 8601 date/time/
9293
duration parser and formatter
9394

@@ -115,6 +116,14 @@ $ pip install python3-saml
115116

116117
If you want to know how a project can handle python packages review this [guide](https://packaging.python.org/en/latest/tutorial.html) and review this [sampleproject](https://github.com/pypa/sampleproject)
117118

119+
#### NOTE ####
120+
To avoid ``libxml2`` library version incompatibilities between ``xmlsec`` and ``lxml`` it is recommended that ``lxml`` is not installed from binary.
121+
122+
This can be ensured by executing:
123+
```
124+
$ pip install --force-reinstall --no-binary lxml lxml
125+
```
126+
118127
Security Warning
119128
----------------
120129

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
test_suite='tests',
3636
install_requires=[
37-
'lxml<4.7.1',
37+
'lxml>=4.6.5',
3838
'isodate>=0.6.1',
3939
'xmlsec>=1.3.9'
4040
],

0 commit comments

Comments
 (0)