Python Forum
Use of zlib and iconv in building lxml
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use of zlib and iconv in building lxml
#1
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?
Reply
#2
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/4825...lding-lxml
Reply
#3
(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
Reply
#4
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Zlib tutorials Vwjap 2 2,340 Mar-13-2021, 09:22 PM
Last Post: Vwjap
  zlib decompress error: invalid code lengths set / invalid block type DreamingInsanity 0 6,740 Mar-29-2020, 12:44 PM
Last Post: DreamingInsanity
  lxml - etree/lxml need help storing variable for most inserted element goeb 0 2,526 Apr-01-2019, 03:09 AM
Last Post: goeb
  How yo find "zlib" necessary for "pyenv" in Linux sylas 1 3,091 Aug-13-2018, 10:27 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020