Commit 91f85b02 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed broken build due to conflicting extra_requires from optimade.

parent b3f26d54
Pipeline #76478 passed with stages
in 36 minutes and 42 seconds
......@@ -40,6 +40,9 @@ requirements.txt where specific comments are used to assign an extra to requirem
'''
ignore_extra_requires = ['optimade']
''' Dependencies where the extra_requires should not be added '''
def parse_requirements():
'''
Parses the requirements.txt file to extras install and extra requirements.
......@@ -176,9 +179,10 @@ def compile_dependency_setup_kwargs(paths, **kwargs):
# 3. requires
local_install_requires = set()
for extra_require in local_kwargs.get('extras_require', {}).values():
for require in extra_require:
local_install_requires.add(require)
if not name in ignore_extra_requires:
for extra_require in local_kwargs.get('extras_require', {}).values():
for require in extra_require:
local_install_requires.add(require)
for require in local_kwargs.get('install_requires', []):
local_install_requires.add(require)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment