| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fixes #302
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Stop testing 2.7 on Fedora.
Remove .travis.yml, we have Github Actions working
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
| |
1. Python 2.6 needs bundled-in typing module
2. Update Windows OpenSSL version.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Fixes #250
|
| |
|
| |
|
|
|
|
|
| |
Unfortunately 3.7 doesn't work on Travis CI (because of too old
OpenSSL).
|
|
|
|
| |
Fixes #212
|
|
|
|
|
|
|
| |
Also, include (optionally, default off) openssl DLLs in win32 binary
builds.
Fixes #202
|
| |
|
| |
|
|
|
|
| |
Fixes #191
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
===
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>
|
| |
|
|
|
|
| |
* typing module is in the std lib as of python 3.5
|
|
|
|
|
| |
* modify _get_additional_includes() to only return paths that start
with ' /'. Fixes issue on OSX clang.
|
|
|
|
| |
Fixes #195
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Also, update documentation for building with OpenSSL in non-standard
location.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
| |
Also, fix licence (it is MIT, not BSD).
Fixes #121
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
|
|
|
| |
Version of OpenSSL > 1.0.1 breaks compatibility with RHEL-6.
|
| |
|