Skip to content

Update setup.py with modern practice for improved compatibility #189

@lxy2304

Description

@lxy2304
  1. pgdb executable script on Windows:
    Issue: The script is not generated correctly.
    Proposed Fix: Update setup.py to use entry_points = {'console_scripts': []} instead of scripts = [] for better cross-platform compatibility. This requires rewriting bin/pgdb as a function and relocating it to the polyglotdb directory.

  2. Specify scipy version:
    Requirement: conch-sounds uses scipy < 1.13. Recent changes in scipy~=1.13 caused ImportError: cannot import name 'gaussian' from 'scipy.signal'.
    Proposed Fix: Specify scipy version ~= 1.12.0

  3. python setup.py install / setup.py install:
    Issue: This approach to install package from source code is outdated.
    Proposed Fix: May consider updating to a more modern practice with pyproject.toml and 'pip install .'

  4. setuptools.command.test:
    Issue: This test command provided by setuptools is deprecated.
    Proposed Fix: Remove the test command from setup.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions