
Is it possible to build lxml without libxslt installed? Thanks. Andriy Kornatskyy

Andriy Kornatskyy, 29.11.2012 20:22:
Is it possible to build lxml without libxslt installed?
It was at some point, but it's not currently. If you want to give it a try, almost all of the code that uses libxslt is in xslt.pxi, with just a few calls in the general initialisation places, especially to configure error reporting. It should be possible to move them into xslt.pxi and then change the build to make that (and thus libxslt) optional. Stefan

Stefan Behnel, 29.11.2012 21:55:
Andriy Kornatskyy, 29.11.2012 20:22:
Is it possible to build lxml without libxslt installed?
It was at some point, but it's not currently. If you want to give it a try, almost all of the code that uses libxslt is in xslt.pxi, with just a few calls in the general initialisation places, especially to configure error reporting. It should be possible to move them into xslt.pxi and then change the build to make that (and thus libxslt) optional.
BTW, I just noticed that I forgot to ask the obvious question: Why do you want to do this? Stefan

I am using it for html parsing and there is nothing to do with xslt, thus dependency to libxslt seems to be optional... in systems like freebsd this requires extra time to get things compiled (libxslt). Any chance to make libxslt optional again so the lxml install is not failing if it is not installed? Thanks. Andriy Kornatskyy ----------------------------------------
Date: Fri, 30 Nov 2012 17:32:41 +0100 From: stefan_ml@behnel.de To: lxml@lxml.de Subject: Re: [lxml] lxml without libxslt
Stefan Behnel, 29.11.2012 21:55:
Andriy Kornatskyy, 29.11.2012 20:22:
Is it possible to build lxml without libxslt installed?
It was at some point, but it's not currently. If you want to give it a try, almost all of the code that uses libxslt is in xslt.pxi, with just a few calls in the general initialisation places, especially to configure error reporting. It should be possible to move them into xslt.pxi and then change the build to make that (and thus libxslt) optional.
BTW, I just noticed that I forgot to ask the obvious question:
Why do you want to do this?
Stefan
_________________________________________________________________ Mailing list for the lxml Python XML toolkit - http://lxml.de/ lxml@lxml.de https://mailman-mail5.webfaction.com/listinfo/lxml

Andriy Kornatskyy, 30.11.2012 18:06:
Stefan Behnel, 29.11.2012 21:55:
Andriy Kornatskyy, 29.11.2012 20:22:
Is it possible to build lxml without libxslt installed?
It was at some point, but it's not currently. If you want to give it a try, almost all of the code that uses libxslt is in xslt.pxi, with just a few calls in the general initialisation places, especially to configure error reporting. It should be possible to move them into xslt.pxi and then change the build to make that (and thus libxslt) optional.
BTW, I just noticed that I forgot to ask the obvious question:
Why do you want to do this?
I am using it for html parsing and there is nothing to do with xslt, thus dependency to libxslt seems to be optional... in systems like freebsd this requires extra time to get things compiled (libxslt).
It's a rather small library, though, so there isn't all that much of a difference.
Any chance to make libxslt optional again so the lxml install is not failing if it is not installed?
See above. You can give it a try if you want. Stefan

Stefan, Thank you for the comment back. If there is anything optional I would keep it so. I would like to see libxslt as an optional dependency in lxml since it is not a big deal from development standpoint of view per input you gave me. Please accept this as a request for enhancement; I believe lxml users only benefit from it. Andriy ----------------------------------------
Date: Sat, 1 Dec 2012 11:30:04 +0100 From: stefan_ml@behnel.de To: lxml@lxml.de Subject: Re: [lxml] lxml without libxslt
Andriy Kornatskyy, 30.11.2012 18:06:
Stefan Behnel, 29.11.2012 21:55:
Andriy Kornatskyy, 29.11.2012 20:22:
Is it possible to build lxml without libxslt installed?
It was at some point, but it's not currently. If you want to give it a try, almost all of the code that uses libxslt is in xslt.pxi, with just a few calls in the general initialisation places, especially to configure error reporting. It should be possible to move them into xslt.pxi and then change the build to make that (and thus libxslt) optional.
BTW, I just noticed that I forgot to ask the obvious question:
Why do you want to do this?
I am using it for html parsing and there is nothing to do with xslt, thus dependency to libxslt seems to be optional... in systems like freebsd this requires extra time to get things compiled (libxslt).
It's a rather small library, though, so there isn't all that much of a difference.
Any chance to make libxslt optional again so the lxml install is not failing if it is not installed?
See above. You can give it a try if you want.
Stefan
_________________________________________________________________ Mailing list for the lxml Python XML toolkit - http://lxml.de/ lxml@lxml.de https://mailman-mail5.webfaction.com/listinfo/lxml

Andriy Kornatskyy, 01.12.2012 13:46:
I would like to see libxslt as an optional dependency in lxml since it is not a big deal from development standpoint of view per input you gave me. Please accept this as a request for enhancement; I believe lxml users only benefit from it.
Maybe I wasn't clear enough. lxml is an open source project. If you want this to get done, you should do it. Otherwise, it's unlikely to happen. Stefan

Stefan, Thank you for the comment back. If there is anything optional I would keep it so. I would like to see libxslt as an optional dependency in lxml since it is not a big deal from development standpoint of view per input you gave me. Please accept this as a request for enhancement; I believe lxml users only benefit from it. Andriy ----------------------------------------
Date: Sat, 1 Dec 2012 11:30:04 +0100 From: stefan_ml@behnel.de To: lxml@lxml.de Subject: Re: [lxml] lxml without libxslt
Andriy Kornatskyy, 30.11.2012 18:06:
Stefan Behnel, 29.11.2012 21:55:
Andriy Kornatskyy, 29.11.2012 20:22:
Is it possible to build lxml without libxslt installed?
It was at some point, but it's not currently. If you want to give it a try, almost all of the code that uses libxslt is in xslt.pxi, with just a few calls in the general initialisation places, especially to configure error reporting. It should be possible to move them into xslt.pxi and then change the build to make that (and thus libxslt) optional.
BTW, I just noticed that I forgot to ask the obvious question:
Why do you want to do this?
I am using it for html parsing and there is nothing to do with xslt, thus dependency to libxslt seems to be optional... in systems like freebsd this requires extra time to get things compiled (libxslt).
It's a rather small library, though, so there isn't all that much of a difference.
Any chance to make libxslt optional again so the lxml install is not failing if it is not installed?
See above. You can give it a try if you want.
Stefan
_________________________________________________________________ Mailing list for the lxml Python XML toolkit - http://lxml.de/ lxml@lxml.de https://mailman-mail5.webfaction.com/listinfo/lxml
participants (2)
-
Andriy Kornatskyy
-
Stefan Behnel