[ https://issues.apache.org/jira/browse/PROTON-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16426293#comment-16426293 ]
Andrew Stitcher commented on PROTON-1558: ----------------------------------------- Hmm, this seems to be because your system doesn't have pkg-config installed, which is what the script uses to detect openssl (and cyrus-sasl as well). I wonder what we can do in that case - can we not assume *any* prior tools at all? > pypi setup.py fails to find openssl un ubuntu > --------------------------------------------- > > Key: PROTON-1558 > URL: https://issues.apache.org/jira/browse/PROTON-1558 > Project: Qpid Proton > Issue Type: Bug > Components: python-binding > Affects Versions: proton-c-0.17.0 > Environment: Ubuntu 16.04 > Reporter: Itamar Landsman > Priority: Major > > When installing python-qpid-proton from pip there is no ssl support. > Trying to build the package (pip download, untar and setup.py build) I get a > warning about OpenSSL not installed: > {quote}ยป python setup.py build > running build > running build_ext > running configure > Warning: command not found: pkg-config > Building the bundled proton-c sources into the extension > Warning: command not found: pkg-config > Warning: OpenSSL not installed - disabling SSL support! > creating build > . > . > . > {quote} > And indeed SSL is not available for the resulting built package. > A hack fix is to go into setup.py and edit the section where the presence of > OpenSSL is verified: > {quote}\# Check whether openssl is installed by poking > \# pkg-config for a minimum version 0. If it's installed, it should > \# return True and we'll use it. Otherwise, we'll use the stub. > if misc.pkg_config_version_installed('openssl', atleast='0'): > libraries += ['ssl', 'crypto'] > sources.append(os.path.join(proton_src, 'ssl', 'openssl.c')) > else: > sources.append(os.path.join(proton_src, 'ssl', 'ssl_stub.c')) > log.warn("OpenSSL not installed - disabling SSL support!"){quote} > Change to: > {quote}\# Check whether openssl is installed by poking > \# pkg-config for a minimum version 0. If it's installed, it should > \# return True and we'll use it. Otherwise, we'll use the stub. > if True: > libraries += ['ssl', 'crypto'] > sources.append(os.path.join(proton_src, 'ssl', 'openssl.c')) > else: > sources.append(os.path.join(proton_src, 'ssl', 'ssl_stub.c')) > log.warn("OpenSSL not installed - disabling SSL support!"){quote} > Now, package is indeed built with SSL support. > The library discovery mechanism needs to be fixed, I expect. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org