Skip to content

Extend system package scripts to handle macports; tox.ini: Add macports environment #31505

@mkoeppe

Description

@mkoeppe

Based on #30504, which added MacPorts package information, we update the system package scripts to include support for MacPorts.

Current Sage builds just fine on a system with MacPorts.
To test this, we add local-macports environments to tox.ini:

tox -e local-macports-minimal

or

tox -e local-macports-standard             # uses /usr/bin/python3

or

tox -e local-macports-standard-python3.10  # uses python3.10 from macports

Each of these commands creates an isolated installation of MacPorts in a subdirectory of .tox (using https://guide.macports.org/#installing.macports.source.multiple
); it will not use or modify /opt/local.

(There is also tox -e local-macports-optlocal-standard, which uses sudo to install things into the default location -- use at your own risk.)

Requested at

Upstream: Not yet reported upstream; Will do shortly.

CC: @slel @kliem @jhpalmieri @dimpase @seblabbe @vbraun @zlscherr

Component: porting

Author: Matthias Koeppe

Branch/Commit: u/mkoeppe/tox_ini__add_macports_environment @ 476fa33

Issue created by migration from https://trac.sagemath.org/ticket/31505

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions