Python Forum
Use of zlib and iconv in building lxml - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Use of zlib and iconv in building lxml (/thread-7535.html)



Use of zlib and iconv in building lxml - sachinsharma - Jan-15-2018

up vote
0
down vote
favorite
We have build lxml4.0.0 with python 2 version with 5 dependencies

iconv-1.9.1.win32.zip,

libxml2-2.6.23.win32.zip,

libxslt-1.1.15.win32.zip,

lxml,zlib-1.2.3.win32.zip.

Here our system scanning team is asking why we have used zlib and iconv lib as they are not able to find these 2 folders in build lxml source code and they want to know if we are shipping this two lib with lxml.

I am new to xml and lxml. Can you please suggest why we are using iconv and zlib for building lxml file?


RE: Use of zlib and iconv in building lxml - buran - Jan-15-2018

well, you (your team) are the one shipping the code, so you should know what and why was used and if it is included in what you distribute :-)
Cross posted on SO
https://stackoverflow.com/questions/48251384/use-of-zlib-and-iconv-in-building-lxml


RE: Use of zlib and iconv in building lxml - snippsat - Jan-15-2018

(Jan-15-2018, 09:52 AM)sachinsharma Wrote: I am new to xml and lxml. Can you please suggest why we are using iconv and zlib for building lxml file?
Because they are needed when build lxml from source.
Why are you building for source?
pip 9.0.1 will get wheel and install.
C:\Python27\Scripts
λ pip -V
pip 9.0.1 from c:\python27\lib\site-packages (python 2.7)

C:\Python27\Scripts
λ pip install lxml
Collecting lxml
  Downloading lxml-4.1.1-cp27-cp27m-win32.whl (3.2MB)
    100% |################################| 3.2MB 342kB/s
Installing collected packages: lxml
Successfully installed lxml-4.1.1
The wheel has all dependencies,so after this install lxml will work for end user.
There also finish wheel build at gohlke.
pip install lxml‑4.1.1‑cp27‑cp27m‑win32.whl



RE: Use of zlib and iconv in building lxml - sachinsharma - Jan-16-2018

Hi Snippsat,
Thanks for your reply. We are not developing any thing new. Its and old code and due to some vulnerability we required to upgrade existing lxml.exe so we cant use wheel. My question is what is the actual use of iconv and zlib in building lxml