summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/create.py
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2023-07-17 08:03:05 -0500
committerGitHub <noreply@github.com>2023-07-17 08:03:05 -0500
commit2b5a7bb4d7428529d7603d1b711beab0baa76b1c (patch)
tree3a78dfebeebdd80763273a2569d4087ccf776134 /lib/spack/spack/cmd/create.py
parente91db7793038b4e7235c8ec7c82244afbb9dfc9e (diff)
downloadspack-2b5a7bb4d7428529d7603d1b711beab0baa76b1c.tar.gz
spack-2b5a7bb4d7428529d7603d1b711beab0baa76b1c.tar.bz2
spack-2b5a7bb4d7428529d7603d1b711beab0baa76b1c.tar.xz
spack-2b5a7bb4d7428529d7603d1b711beab0baa76b1c.zip
Update new PythonPackage template to prefer --config-settings (#38918)
Diffstat (limited to 'lib/spack/spack/cmd/create.py')
-rw-r--r--lib/spack/spack/cmd/create.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py
index 41562c98ec..ab84da4151 100644
--- a/lib/spack/spack/cmd/create.py
+++ b/lib/spack/spack/cmd/create.py
@@ -325,6 +325,7 @@ class PythonPackageTemplate(PackageTemplate):
# FIXME: Add a build backend, usually defined in pyproject.toml. If no such file
# exists, use setuptools.
# depends_on("py-setuptools", type="build")
+ # depends_on("py-hatchling", type="build")
# depends_on("py-flit-core", type="build")
# depends_on("py-poetry-core", type="build")
@@ -332,17 +333,11 @@ class PythonPackageTemplate(PackageTemplate):
# depends_on("py-foo", type=("build", "run"))"""
body_def = """\
- def global_options(self, spec, prefix):
- # FIXME: Add options to pass to setup.py
+ def config_settings(self, spec, prefix):
+ # FIXME: Add configuration settings to be passed to the build backend
# FIXME: If not needed, delete this function
- options = []
- return options
-
- def install_options(self, spec, prefix):
- # FIXME: Add options to pass to setup.py install
- # FIXME: If not needed, delete this function
- options = []
- return options"""
+ settings = {}
+ return settings"""
def __init__(self, name, url, *args, **kwargs):
# If the user provided `--name py-numpy`, don't rename it py-py-numpy