Skip to content

no console scripts installed in 0.9.0 #279

Description

@orbeckst

The gw-*.py scripts are not installed in the bin directory.

With the switch to pyproject.toml #278 and modern versions of setuptools, we cannot use

[tool.setuptools]

scripts = [
    "scripts/gw-join_parts.py",
    "scripts/gw-merge_topologies.py",
    "scripts/gw-forcefield.py",
    "scripts/gw-partial_tempering.py"
]

because with python -m build we get an error

configuration error: `tool.setuptools` must not contain {'scripts'} properties

Background

  • https://stackoverflow.com/a/74355524 says that we could include a shim setup.py just for scripts and that would likely work, but I want to make a clean break
  • https://stackoverflow.com/a/74955996 suggests that the code above ought to work and only raise a warning that it's discouraged but presumably 1-2 years later, setuptools decided to not support it anymore

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions