From 63dea7e44148d18a1a087a90c9a6794964d57788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Sun, 1 Oct 2017 11:23:50 +0200 Subject: Additional directories for self.library_dirs should be first, not last. Also, update documentation for building with OpenSSL in non-standard location. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 9c794d9..c72da08 100644 --- a/setup.py +++ b/setup.py @@ -51,6 +51,7 @@ def _get_additional_includes(): _, err = pid.communicate() err = [line.lstrip() for line in err.decode('utf8').split('\n') if line and line[0] == ' '] + log.debug('additional includes:\n%s', err) return err @@ -211,7 +212,8 @@ class _M2CryptoBuildExt(build_ext.build_ext): # Someday distutils will be fixed and this won't be needed. self.library_dirs += [os.path.join(self.openssl, 'bin')] - self.library_dirs += [os.path.join(self.openssl, openssl_library_dir)] + self.library_dirs.insert(0, os.path.join(self.openssl, openssl_library_dir)) + log.debug('self.library_dirs = %s', self.library_dirs) mkpath(os.path.join(self.build_lib, 'M2Crypto')) -- cgit v1.2.1