Skip to content

Detect MacPorts + Conda and ignore environment #1244

@LourensVeen

Description

@LourensVeen

Is your feature request related to a problem? Please describe.
MacPorts sets environment variables like CC and CXX and PREFIX, and if you have it installed and then try to do a conda-based install, the build system will pick up those variables and try to use the MacPorts compilers (and installation prefix! at least for some codes) instead of the conda ones.

Describe the solution you'd like
I'd like for ./setup to detect this situation, then ignore (unset locally) the environment variables, and print a warning to the user that it's doing that. Ideally, there'd still be a way to override things just in case.

Describe alternatives you've considered
Tell individual users to unset those variables by hand, which I've done a few times now but which doesn't scale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: building/installingIssue relates to the build system and installing from sourcearea: macOSIssue found on macOS, may require a mac to fixkind: feature requestThe issue requests a feature that AMUSE does not currently have

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions