Skip to content

Scriptable (commandline) customization of CONDAX_LINK_DESTINATION (link_destination) #16

Description

@mforbes

The link_destination can be customized in the .condarc, but this is inconvenient for scripts.

It would be helpful if this could be set on the command line, either with a specific flag, or through an environmental variable.

For reference, pipx uses PIPX_BIN_DIR.

My use-case is to use condax to provision my system, so need to link the executables to /usr/local/bin/ rather than a home directory.

A quick hack would be something like this in config.py:

CONDAX_LINK_DESTINATION = path.expanduser(
    os.environ.get(
        'CONDAX_LINK_DESTINATION',
        _config["link_destination"]))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions