From 56ae6c2e053bae68c1baa2b74766d05b088fa524 Mon Sep 17 00:00:00 2001 From: Gennady Feldman Date: Mon, 4 Mar 2019 22:54:42 -0500 Subject: [PATCH] pip19 removed process_dependency_links. * Add a check to see if process_dependency_links is supported. --- lib/poise_python/resources/python_package.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/poise_python/resources/python_package.rb b/lib/poise_python/resources/python_package.rb index 64e32e6..fa980a1 100644 --- a/lib/poise_python/resources/python_package.rb +++ b/lib/poise_python/resources/python_package.rb @@ -70,10 +70,11 @@ module PythonPackage find_links=options.find_links, index_urls=index_urls, allow_all_prereleases=options.pre, - process_dependency_links=options.process_dependency_links, trusted_hosts=options.trusted_hosts, session=session, ) + if getattr(options, 'process_dependency_links', None): + finder_options['process_dependency_links'] = options.process_dependency_links if getattr(options, 'format_control', None): finder_options['format_control'] = options.format_control finder = PackageFinder(**finder_options)