Skip to content

Commit

Permalink
pin cryptography version 3.0 (#506)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <[email protected]>
  • Loading branch information
dirk-thomas authored Aug 27, 2020
1 parent 20e0343 commit 94fd131
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ros2_batch_job/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@
'pyyaml',
'vcstool',
]
# https://github.com/pyca/cryptography/issues/5433
pip_cryptography_version = '==3.0'
if sys.platform in ('darwin'):
pip_dependencies += [
'cryptography',
f'cryptography{pip_cryptography_version}',
'lxml',
'netifaces'
]
Expand Down Expand Up @@ -534,7 +536,7 @@ def run(args, build_function, blacklisted_package_names=None):
]
else:
pip_packages += [
'cryptography',
f'cryptography{pip_cryptography_version}',
'lxml',
'netifaces',
'numpy',
Expand All @@ -548,7 +550,7 @@ def run(args, build_function, blacklisted_package_names=None):
# to ensure that the build type specific package is installed
job.run(
['"%s"' % job.python, '-m', 'pip', 'uninstall', '-y'] +
['cryptography', 'lxml', 'numpy'], shell=True)
[f'cryptography{pip_cryptography_version}', 'lxml', 'numpy'], shell=True)
pip_cmd = ['"%s"' % job.python, '-m', 'pip', 'install', '-U']
if args.do_venv or sys.platform == 'win32':
# Force reinstall so all dependencies are in virtual environment
Expand Down

0 comments on commit 94fd131

Please sign in to comment.