Index: general/prog/lxml.xml
===================================================================
--- general/prog/lxml.xml	(revision b4b75a48f3ae20b335ac72dce42e1973f0746bed)
+++ general/prog/lxml.xml	(revision 55abe72937a856c528c7b043702e23947665a604)
@@ -7,8 +7,8 @@
   <!ENTITY lxml-download-http "&pymodules-dl;/l/lxml/lxml-&lxml-version;.tar.gz">
   <!ENTITY lxml-download-ftp  " ">
-  <!ENTITY lxml-md5sum        "e54e2fae44d684d6b9c636fe189e93ff">
-  <!ENTITY lxml-size          "3.6 MB">
-  <!ENTITY lxml-buildsize     "104 MB">
-  <!ENTITY lxml-time          "1.3 SBU">
+  <!ENTITY lxml-md5sum        "c30d7e752cc909c1c0c40bd34153443a">
+  <!ENTITY lxml-size          "4.1 MB">
+  <!ENTITY lxml-buildsize     "154 MB (plus 31 MB for the testsuite without optional deps)">
+  <!ENTITY lxml-time          "1.5 SBU (plus 1.7 SBU for the testsuite without optional deps)">
 ]>
 
@@ -74,4 +74,11 @@
       </para>
 
+      <bridgehead renderas="sect5">Optional (to run more tests)</bridgehead>
+      <para role="optional">
+        <xref linkend="gdb"/>
+        <xref linkend="valgrind"/>
+        <ulink url="&pypi;/cssselect/">cssselect</ulink>
+      </para>
+
       <para condition="html" role="usernotes">
         User Notes: <ulink url="&blfs-wiki;/lxml"/>
@@ -93,21 +100,43 @@
 
       <para>
-        To install the <application>Python 2</application> module,
-        run the following commands as the
-        <systemitem class="username">root</systemitem> user:
+        To build the <application>Python 2</application> module, run:
       </para>
 
-<screen role="root"><userinput>python setup.py build &amp;&amp;
-python setup.py install --optimize=1</userinput></screen>
+<screen><userinput>python setup.py build</userinput></screen>
+
+     <para>
+       If you wish to run the tests, enter: <command>make test</command>.
+       This will rebuild the package for inplace use before running the tests.
+       There will be at least 1 error.
+     </para>
+
+      <para>
+        To install the <application>Python 2</application> module,
+        as the
+        <systemitem class="username">root</systemitem> user run:
+      </para>
+
+<screen role="root"><userinput>python setup.py install --optimize=1</userinput></screen>
+
+      <para>
+        To build the <application>Python 3</application> module, run:
+      </para>
+
+<screen><userinput>python3 setup.py clean &amp;&amp;
+python3 setup.py build</userinput></screen>
+
+     <para>
+       If you wish to run the tests, enter: <command>make PYTHON=python3
+       test</command>. This will rebuild the package for inplace use before
+       running the tests. There will be at least 1 error.
+     </para>
 
       <para>
         To install the <application>Python 3</application> module,
-        run the following commands as the
-        <systemitem class="username">root</systemitem> user:
+        as the
+        <systemitem class="username">root</systemitem> user run:
       </para>
 
-<screen role="root"><userinput>python3 setup.py clean &amp;&amp;
-python3 setup.py build &amp;&amp;
-python3 setup.py install --optimize=1</userinput></screen>
+<screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
 
     </sect3>
@@ -129,7 +158,9 @@
           </seg>
           <seg>
-            /usr/lib/python&python2-majorver;/site-packages/lxml-&lxml-version;-py&python2-majorver;-linux-$ARCH.egg
+            /usr/lib/python&python2-majorver;/site-packages/lxml,
+            /usr/lib/python&python2-majorver;/site-packages/lxml-&lxml-version;-py&python2-majorver;-linux-$ARCH.egg-info
             and/or
-            /usr/lib/python&python3-majorver;/site-packages/lxml-&lxml-version;-py&python3-majorver;-linux-$ARCH.egg
+            /usr/lib/python&python3-majorver;/site-packages/lxml,
+            /usr/lib/python&python3-majorver;/site-packages/lxml-&lxml-version;-py&python3-majorver;-linux-$ARCH.egg-info
           </seg>
         </seglistitem>
Index: introduction/welcome/changelog.xml
===================================================================
--- introduction/welcome/changelog.xml	(revision b4b75a48f3ae20b335ac72dce42e1973f0746bed)
+++ introduction/welcome/changelog.xml	(revision 55abe72937a856c528c7b043702e23947665a604)
@@ -46,4 +46,8 @@
       <itemizedlist>
         <listitem>
+          <para>[ken] - Update to lxml-4.0.0 (Python module). Fixes
+          <ulink url="&blfs-ticket-root;9777">#9777</ulink>.</para>
+        </listitem>
+        <listitem>
           <para>[bdubbs] - Update to libburn and libisoburn-1.4.8. Fixes
           <ulink url="&blfs-ticket-root;9774">#9774</ulink>.</para>
@@ -67,5 +71,4 @@
       </itemizedlist>
     </listitem>
-
 
     <listitem>
Index: packages.ent
===================================================================
--- packages.ent	(revision b4b75a48f3ae20b335ac72dce42e1973f0746bed)
+++ packages.ent	(revision 55abe72937a856c528c7b043702e23947665a604)
@@ -394,5 +394,5 @@
 <!ENTITY funcsigs-version             "1.0.2">
 <!ENTITY Jinja2-version               "2.9.6">
-<!ENTITY lxml-version                 "3.8.0">
+<!ENTITY lxml-version                 "4.0.0">
 <!ENTITY mako-version                 "1.0.4">
 <!ENTITY MarkupSafe-version           "1.0">
