Skip to content

Commit

Permalink
Rename settings to config_settings in PEP 517 hooks (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh authored Jul 20, 2024
1 parent 8a63d64 commit 4fa7342
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions enscons/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ def _run(alias):
return os.path.basename(str(lookup))


def prepare_metadata_for_build_wheel(metadata_directory, settings):
def prepare_metadata_for_build_wheel(metadata_directory, config_settings=None):
sys.argv[1:] = ["--wheel-dir=" + metadata_directory, "dist_info"]
return _run("dist_info")


def build_wheel(wheel_directory, settings, metadata_directory=None):
def build_wheel(wheel_directory, config_settings=None, metadata_directory=None):
sys.argv[1:] = ["--wheel-dir=" + wheel_directory, "bdist_wheel"]
return _run("bdist_wheel")


def build_sdist(sdist_directory, settings):
def build_sdist(sdist_directory, config_settings=None):
sys.argv[1:] = ["--dist-dir=" + sdist_directory, "sdist"]
return _run("sdist")

Expand Down

0 comments on commit 4fa7342

Please sign in to comment.