Skip to content

Commit

Permalink
refactor module
Browse files Browse the repository at this point in the history
  • Loading branch information
rjdbcm committed Dec 3, 2024
1 parent 11c5db6 commit 717f2b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ozi_build/buildapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

def get_requires_for_build_wheel(config_settings=None):
"""Returns a list of requirements for building, as strings"""
return Config().__requires if Config().__requires else []
return Config().requirements


# For now, we require all dependencies to build either a wheel or an sdist.
Expand Down
4 changes: 4 additions & 0 deletions ozi_build/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def __init__(self, builddir=None):
if builddir:
self.set_builddir(builddir)

@property
def requirements(self):
return self.__requires if self.__requires else []

def validate_options(self):
options = VALID_OPTIONS.copy()
options['version'] = {}
Expand Down

0 comments on commit 717f2b7

Please sign in to comment.