summaryrefslogtreecommitdiff
path: root/setup.py
Commit message (Collapse)AuthorAgeFilesLines
* A compatibility shim for setup.pyMatěj Cepl2023-02-021-0/+6
|
* Make Windows tests working again.Matěj Cepl2023-02-021-1/+1
| | | | Fixes #315
* Use OpenSSL_version_num() instead of unrealiable parsing of .h file.Matěj Cepl2021-11-221-15/+24
| | | | Fixes #302
* Reverse 5595820 ... tests still fail.Matěj Cepl2021-07-231-1/+1
|
* Fiixed: On Win32 platforms openssl dll's not present in binary packages anymorePandu Getj2021-07-221-1/+1
|
* parameterized is actually not required for every run of M2Crypto.Matěj Cepl2021-04-231-2/+2
|
* Add support for arm64 big endianSteev Klimaszewski2021-04-181-0/+2
|
* Move project to src/ layoutMatěj Cepl2021-01-141-8/+11
|
* But we do support 3.8Matěj Cepl2020-12-081-0/+1
|
* We DO NOT support Python 2.6.Matěj Cepl2020-12-081-1/+0
|
* Fix typo parametrized -> parameterizedMatěj Cepl2020-12-081-1/+1
|
* Stop playing with swig, we don't support swig 1.* anymore.Matěj Cepl2020-12-081-44/+1
|
* Use parametrized to create parametrized tests.Matěj Cepl2020-12-031-1/+1
| | | | | Stop testing 2.7 on Fedora. Remove .travis.yml, we have Github Actions working
* setup.py: move swig default includes before opensslFabrice Fontaine2020-11-081-2/+3
| | | | | | | | | | | | | | | | | | | Move swig default includes before openssl to avoid the following build failure when cross-compiling for some architectures (e.g. arm, mips): swig -python -py3 -D__x86_64__ -I/srv/storage/autobuild/run/instance-0/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/python3.9 -I/srv/storage/autobuild/run/instance-0/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include -I/srv/storage/autobuild/run/instance-0/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/openssl -I/srv/storage/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-gnu/8.3.0/include -I/srv/storage/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-gnu/8.3.0/include-fixed -I/srv/storage/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-gnu/8.3.0/../../../../mipsel-buildroot-linux-gnu/include -I/srv/storage/autobuild/run/instance-0/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include -includeall -modern -builtin -outdir /srv/storage/autobuild/run/instance-0/output-1/build/python-m2crypto-0.36.0/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i Deprecated command line option: -modern. This option is now always on. /srv/storage/autobuild/run/instance-0/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include/bits/types.h:139: Error: CPP #error "". Use the -cpperraswarn option to continue swig processing. This build failure is probably raised because swig includes a wrong types.h file from the openssl directory (e.g. /srv/storage/autobuild/run/instance-0/output-1/host/mipsel-buildroot-linux-gnu/sysroot/usr/include) Fixes: - http://autobuild.buildroot.org/results/7f63e6a2d8681cc3408f344556afd5dd16eb7368 - http://autobuild.buildroot.org/results/d115a082418321e7dc4715c635f94b30b3cad387 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
* Just cleanup of spaces in setup.pyMatěj Cepl2020-11-021-15/+18
|
* Revert using typing module in 2.6. It is just not worthy.Matěj Cepl2019-11-251-6/+5
|
* Make tests pass again.Matěj Cepl2019-11-241-0/+5
| | | | | 1. Python 2.6 needs bundled-in typing module 2. Update Windows OpenSSL version.
* Stop using string module, which has been deprecated.Matěj Cepl2019-11-241-2/+3
|
* Tiny fixes to make pyls more happyMatěj Cepl2019-11-141-3/+6
|
* Use shlex.split() for CPPMike Gilbert2019-05-061-3/+4
| | | | | | | | The CPP environment variable is typically used in Makefiles, where it is passed to a shell for interpretation. The shlex module simulates shell-compatible word splitting, including handling of quoted strings.
* Stop pretending to support Python 3.4.Matěj Cepl2019-04-261-1/+0
|
* There are apparently multiword CPP variables. Taking that into account.Matěj Cepl2019-03-071-1/+3
| | | | Fixes #250
* setup.py: use ${CPP} as path to cppDuncan Macleod2019-03-041-1/+1
|
* Add type comment to setup.pyMatěj Cepl2018-12-021-0/+1
|
* Deprecate Python 3.3 (unsupported by Twisted) and test on 3.7.Matěj Cepl2018-10-031-1/+1
| | | | | Unfortunately 3.7 doesn't work on Travis CI (because of too old OpenSSL).
* Fix packaging.0.30.1Matěj Cepl2018-04-291-1/+1
| | | | Fixes #212
* Generate better set of binaries for WindowsMatěj Cepl2018-02-281-6/+47
| | | | | | | Also, include (optionally, default off) openssl DLLs in win32 binary builds. Fixes #202
* Acommodate setup.py to work on Windows.Daniel A. Wozniak2018-02-231-45/+32
|
* OpenSSL version is a hexadecimal number not a version number.Matěj Cepl2018-02-191-3/+3
|
* Fix typo breaking setup.py on Windows.Matěj Cepl2018-02-191-1/+2
| | | | Fixes #191
* Add ppc64le in setup.py to avoid build errorMichel Normand2018-02-081-1/+3
| | | | | | | | | | | | | | === swig -python -D__ppc64le__ -I/usr/include/python3.6m -I/usr/include/ \ -includeall -modern -builtin -outdir \ /home/abuild/rpmbuild/BUILD/M2Crypto-0.27.0/M2Crypto \ -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i /usr/include//gnu/stubs.h:8: Error: Unable to find 'gnu/stubs-32.h' error: command 'swig' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.ugv4sN (%build) === Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
* Metadata for py3k port.Matěj Cepl2018-02-081-0/+5
|
* setup: add upper ver for typing module requirementAllan Que2018-01-231-2/+1
| | | | * typing module is in the std lib as of python 3.5
* setup: search for include paths that start with ' /'Allan Que2018-01-231-1/+1
| | | | | * modify _get_additional_includes() to only return paths that start with ' /'. Fixes issue on OSX clang.
* Bundle-in unittest2 0.5.1 for Python 2.6.Matěj Cepl2018-01-081-6/+4
| | | | Fixes #195
* Fix setup.py: Change method to figure out what libraries to useRichard Levitte2017-11-161-58/+39
| | | | | | | | | | | Running the default 'openssl version -v' doesn't necessarely correspond to the OpenSSL installation that's used, especially if it's in a non-standard location indicated by --openssl. So instead of trying to figure out the version using the application, we look for the version integer in 'opensslv.h' instead, and make sure we look at the correct one. This also helps determining the correct OpenSSL library names to use on Windows.
* Fix setup.py: handling --opensslRichard Levitte2017-10-161-25/+46
| | | | | | | | | | | | | | | | In _M2CryptoBuildExt.initialize_options, just set self.openssl = None. In _M2CryptoBuildExt.finalize_options, try to inherit the openssl option from the 'build' command. This way, 'python setup.py build --openssl...' will get the value properly. Move the setting of default values from _M2CryptoBuildExt.initialize_options to _M2CryptoBuildExt.finalize_options, and only set those defaults if self.openssl is None. This ensures that the --openssl value is always considered when given. Finally, remove the direct check of command line parameters. It's not needed any more, and violates the proper distutils function.
* Additional directories for self.library_dirs should be first, not last.Matěj Cepl2017-10-121-1/+3
| | | | | Also, update documentation for building with OpenSSL in non-standard location.
* subprocess.Popen() process returns bytes and bytes don't have split() method.Matěj Cepl2017-10-121-1/+2
|
* We should use special py3 option for swig when possible.Matěj Cepl2017-10-121-2/+6
|
* Remove all PGP modules.Matěj Cepl2017-10-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #182. Reasoning for the change was: I think we are just lying to ourselves when we keep PGP module in the repository. 1. It is not used. Over a year, there is ``DeprecationWarning`` asking anybody who uses the module to contact me. Nobody ever did. Even the previous maintainer of M2Crypto [did not know how to use it](https://stackoverflow.com/a/1042139/164233), and that was 2009. Whole Stack Overflow is full of vague comments like “hopefully M2Crypto.PGP will help you”, but I have not found on DuckDuckGo one example of use of M2Crypto.PGP 2. The main point of M2Crypto is to be Python bindings for OpenSSL. And truly most of the other M2Crypto code is just a tiny wrapper around C functions. That is not so with M2Crypto.PGP. It is basically reimplementation of PGP keys manipulation functions with Python with rather large set of Python objects and complicated computations. There are very few calls to any C code at all and most work is done by series of Python functions. And, obviously, PGP != OpenSSL. 3. There is very tiny test suite for M2Crypto.PGP. It is basically just running ``PGP.load_pubring()``, which does exercise a lot of the module, but certainly it is far from the rigorous unit testing. 4. And of course, it is completely broken under Python 3, and I have no idea how to fix it (especially given 1. I don't want to spend too much time on it).
* Fix metadata for new release.0.27.0Matěj Cepl2017-10-051-1/+2
| | | | | | Also, fix licence (it is MIT, not BSD). Fixes #121
* Make build work even on old Ubuntu with python 2.6.Matěj Cepl2017-09-271-22/+32
|
* Fix setup.py sdist and release0.26.2Matěj Cepl2017-09-201-7/+5
|
* Change JavaDoc parameters to the Sphinx convention.Matěj Cepl2017-09-201-5/+5
|
* Switch OpenSSL DEPRECATEDIN_1_1_0 function into Python warnings.Matěj Cepl2017-09-201-9/+18
|
* Fixes of setup.py for OpenSSL 1.1.0 on RHEL-6.Jim Carroll2017-09-191-5/+28
| | | | | | | | | | | | | | | | | | | * Added code to detect & set OPENSSL_VERSION_NUMBER * Changed windows builds to use official installation directory for OpenSSL 1.1.0 * Hacky solution for _MSC_VER setting on windows (will come up with something better shortly. * Took over the unused 'my_extra_compile_args' to silence MSVC, CRT_SECURE_WARNINGS * Changed to support 2.6 for CentOS (subprocess on 2.6 does not support check_output()) * Refined swig options that only belong to windows * Remove 'L' long integer suffix for python 3 build support * Fixup for python3 bytes vs string * Use <windows.i> instead of hacking around __inline issue. Swig provides <windows.i> which provides a collection of workarounds to Microsoft calling conventions. Make sure to include it BEFORE including safestack.h
* Clean all compiled librariesMatěj Cepl2017-01-201-2/+2
|
* Fix the commit to the current master branch.Matěj Cepl2016-12-131-19/+2
|
* Use swig generated python loaderJoe Julian2016-12-131-1/+3
|