summaryrefslogtreecommitdiff
path: root/setupinfo.py
Commit message (Collapse)AuthorAgeFilesLines
* Add missing C macro define on Windows that is now required by libexslt 1.1.37.Stefan Behnel2023-03-271-0/+1
|
* Allow cross-compiling for Windows ARM64 (GH-343)Steve Dower2022-05-171-1/+2
| | | Also, use the setuptools build_ext command: this allows proper handling of cross-compilation added to setuptools but not to [deprecated] distutils.
* setupinfo.py: check the return value of subprocesses (GH-336)Mingli-Yu2022-01-201-1/+1
| | | | | | | | | | | | | | | | | | | Use the return value altogether to check the subprocess execute successfully or not as in some case it will print some noise message though run successfully as below. # python Python 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import subprocess >>> cmd = "pkg-config --modversion libxml-2.0" >>> p = subprocess.Popen(cmd, shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE) >>> stdout_data, errors = p.communicate() >>> print(stdout_data) b'2.9.12\n' >>> print(errors) b'do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable\n'
* Add a visible warning to the build output when detecting libxml2 2.9.11 or ↵Stefan Behnel2022-01-131-0/+8
| | | | | | 2.9.12. See https://bugs.launchpad.net/lxml/+bug/1928795
* Define LIBXML_STATIC and LIBXSLT_STATIC when linking statically against ↵Stefan Behnel2021-11-191-0/+3
| | | | | | libxml2/libxslt. This is needed on Windows but shouldn't get in the way otherwise. https://www.aleksey.com/xmlsec/api/xmlsec-notes-compiling-windows.html
* Fix typo.Stefan Behnel2020-06-091-1/+1
|
* Make setup options "--with-xml2-config" and "--with-xslt-config" work again, ↵Stefan Behnel2020-06-081-4/+17
| | | | | | after accidentally renaming them to "--xml2-config" and "--xslt-config" in 4.5.1. See https://github.com/lxml/lxml/pull/297#issuecomment-640496325
* Simplify checks for minimum library versions (GH-300)Hugh McMaster2020-03-211-17/+21
|
* Improve detection of the libxml2 and libxslt libraries (GH-297)Hugh McMaster2020-02-261-47/+70
| | | Fixes Launchpad bug #1863413
* Do not statically link compiled Python modules against libxml2 & friends.Stefan Behnel2018-07-301-6/+7
|
* Merge pull request #259 from TingPing/pkg-configscoder2018-07-071-2/+8
|\ | | | | Support using pkg-config for xml2-config/xslt-config tools
| * Support using pkg-config for xml2-config/xslt-config toolsPatrick Griffis2018-02-241-2/+8
| | | | | | | | | | Those tools are not supported on some distributions where pkg-config is recommended and otherwise works fine.
* | Merge lxml-4.2 branch into master.Stefan Behnel2018-06-271-1/+1
|\ \
| * | Backed out changeset ff9850742604Stefan Behnel2018-06-271-1/+1
| | | | | | | | | | | | Not linking against libz produces several problems with wheels.
* | | Include "lxml.sax" in compiled modules.Stefan Behnel2018-06-221-1/+7
|/ /
* | Link libz only for static buildsNehal J Wani2018-05-151-1/+1
| | | | | | | | | | | | If a user is not building libxml2 and is linking to it dynamically, then there is no additional need to link to libz, since libxml2 will be depending on libz anyway.
* | Be more conservative when *not* setting linker flags.Stefan Behnel2018-03-211-3/+1
| |
* | Merge pull request #258 from frgtn/fix_macos_xcode_buildscoder2018-03-211-0/+8
|\ \ | | | | | | Include -isysroot linker arg on macos
| * | Include -isysroot linker arg on macosSaulius Žemaitaitis2018-01-031-0/+8
| |/ | | | | | | | | | | | | | | Adds -isysroot linker flag when building extensions on darwin target. Uses `xcrun --show-sdk-path` to determine isysroot value. Based on suggestions found in https://forums.developer.apple.com/thread/87829 and addresses https://bugs.launchpad.net/lxml/+bug/1727864
* | Explicitly disable C lines in tracebacks (it's faster and cleaner), but ↵Stefan Behnel2018-02-101-3/+3
|/ | | | provide a build time option so that users can enable it again if they need it.
* Prepare release of 4.1.0.lxml-4.1.0Stefan Behnel2017-10-131-0/+3
|
* Compile ElementMaker into an extension type to speed it up.Stefan Behnel2017-08-191-1/+1
|
* Properly integrate the compilation of _elementpath.py and some lxml.html ↵Stefan Behnel2017-08-111-31/+59
| | | | | | modules into the build process and exclude it in PyPy. Also finally rename lxml.etree.pyx and lxml.objectify.pyx to their correct module names and provide some legacy integration aid by keeping the original API header file names.
* compile _elementpath.py module to speed it up (~25% faster)Stefan Behnel2017-07-191-1/+4
|
* remove subprocess fallback codeJakub Wilk2017-03-171-13/+4
| | | | This was needed for Python 2.3, which is no longer supported.
* include latest zlib in static-deps buildStefan Behnel2016-08-201-3/+10
|
* link against librt only on LinuxStefan Behnel2016-08-201-4/+4
|
* link with "-lrt" error on darwin (OS X)Pan Fan2016-08-201-0/+2
|
* link with "-lrt" to correctly support builds on pre-glibc 2.17 Linux platformsStefan Behnel2016-08-181-2/+2
|
* fix libxml2 check on build failures and enable it also when Cython isn't ↵Stefan Behnel2015-03-211-15/+11
| | | | available
* fix importStefan Behnel2015-03-211-1/+1
|
* reduce likeliness of false positives when trying to figure out the reason of ↵Stefan Behnel2015-03-191-3/+5
| | | | a build failure
* clean up libxml2 check on build failuresStefan Behnel2015-03-191-9/+16
|
* fix compiler error propagationStefan Behnel2015-03-191-1/+1
|
* Merge pull request #164 from ↵scoder2015-03-191-2/+26
|\ | | | | | | | | msabramo/friendlier_error_when_libxml2_not_installed Friendlier error when libxml2 not installed
| * Friendlier error when libxml2 not installedMarc Abramowitz2015-03-051-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use distutils.ccompiler.has_function to detect whether libxml2 is installed in setupinfo.py. This allows failing earlier with a somewhat more helpful error message if libxml2 is not installed. On OS X, I display a tip about `xcode-select --install`. Normally I wouldn't put platform-specific stuff in here (i.e.: I don't advise using apt-get on Debian/Ubuntu or yum on Fedora/RedHat/CentOS) because it's a pain to enumerate all the special cases and usually most people on Linux platforms know their platform well enough to know how to install packages. I made an exception for OS X and `xcode-select --install`, because I am pretty savvy with Linux and OS X and getting things to build, but the `xcode-select --install` thing was not obvious to me at all. At one point, I had concluded that libxml2 must've been removed from OS X and I would have to `brew install` it and specify environment variables to make the compiler find it, because it's a keg-only formula, but then I found a post on Stack Overflow, which illustrated that `xcode-select --install` might be all it takes to get Xcode to put the files in the proper places so that command-line tools can find them. Since this was not obvious and a good tip, I decided to add it here.
* | clean up some codeStefan Behnel2015-03-051-7/+5
|/
* enable coverage reporting also for nogil codeStefan Behnel2015-02-221-1/+1
|
* cleanup, make sure we set "source_extension" variableStefan Behnel2015-02-211-4/+5
|
* add setup.py option "--with-coverage" for coverage reportingStefan Behnel2015-02-211-1/+8
|
* setup.py: use relative directories for dependencies and include directoriesStefan Behnel2015-02-141-14/+28
|
* remove dead code from build scriptsStefan Behnel2015-02-141-1/+1
|
* minor, str.join() expects stringsAndy Zhu2014-09-101-4/+4
| | | | | | | | With versions below minimum version, instead of raising an informative error message the following traceback occurs: TypeError: sequence item 0: expected string, int found Change-Id: I5ac35935cd61786181e1c6372e752a1600cc2c2d
* fix sdist build without xslt-configStefan Behnel2014-03-221-0/+3
|
* remove legacy code for now unsupported libxml2/libxslt versionsStefan Behnel2014-03-221-0/+17
| | | | | --HG-- extra : amend_source : 5f766bb41c74b8ea7bba7f71905fb18cb90a19f2
* allow disabling -w C compiler optionStefan Behnel2014-01-171-1/+3
|
* add -w to CFLAGS for now because Cython generates some incorrect casts (but ↵Stefan Behnel2014-01-171-1/+1
| | | | working code)
* use @cython.no_gc_clear decorator for Elements to get rid of double ↵Stefan Behnel2014-01-171-0/+1
| | | | _Document ref hack
* add compile time option for Py2 that makes the API always return Unicode ↵Stefan Behnel2012-12-211-0/+3
| | | | strings for names and text instead of byte strings for pure ASCII
* include Cython compilation in sdist build by passing the distutils ↵Stefan Behnel2012-11-231-10/+16
| | | | Extensions through cythonize()