Skip to content

Commit

Permalink
Added check for OpenSSL module, if not installed add pyOpenSSL depend…
Browse files Browse the repository at this point in the history
…ency
  • Loading branch information
bentoi committed Sep 3, 2015
1 parent 021faaf commit 6d1bae6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,24 @@
from distutils.core import setup
import sys

hasOpenSSL=False
try:
import OpenSSL
hasOpenSSL=True
except:
pass

setup(
name = 'zeroc-icecertutils',
packages = ['IceCertUtils'],
version = '1.0.0',
version = '1.0.1',
description = 'ZeroC Ice certificate utilities',
author = 'ZeroC, Inc.',
author_email = '[email protected]',
url = 'https://github.com/zeroc-ice/ice-certutils',
download_url = 'https://github.com/zeroc-ice/ice-certutils/archive/v1.0.0.tar.gz',
url = 'https://github.com/zeroc-ice/icecertutils',
download_url = 'https://github.com/zeroc-ice/icecertutils/archive/v1.0.1.tar.gz',
keywords = ['ice', 'certificate', 'ca', 'ssl'],
install_requires = (["pyopenssl>=0.14"] if sys.platform == "win32" else []),
install_requires = (["pyopenssl>=0.14"] if not hasOpenSSL or sys.platform == "win32" else []),
license='BSD',
entry_points = {
'console_scripts' : ["iceca=IceCertUtils.IceCaUtil:main"],
Expand Down

0 comments on commit 6d1bae6

Please sign in to comment.