Skip to content

Dependencies in setup.py tend to mess with conda config #430

@jgliss

Description

@jgliss

When installing pyaerocom in developing mode into an existing conda environment via

pip install --no-deps -e .

the command line interface crashes, that is:

pya --ppiaccess

crashes as somewhere during the import of pyaerocom the "scitools-pyke>=1.1.1" is not given:

pkg_resources.DistributionNotFound: The 'scitools-pyke>=1.1.1' distribution was not found and is required by pyaerocom

I think this is due to the fact that "scitools-pyke>=1.1.1" is listed in setup.py as requirement @avaldebe, which is actually not a direct requirement for pyaerocom but I believe for iris (and pip should install that via iris). We could add this in the conda env but I resist a little and think we should re-discuss the recommended installation pathways (I, personally do not like the setup.py to be too smart, trying to solve the dependencies - via pip - as well, particularly because this has such high potential to mess with conda environments if not invoked in the correct way, with pip and --no-deps).

@jgriesfeller also had some issues in his pycharm configuration because of that, I think.

For now I will make a PR that removes pyke from setup.py so that the CLI works again.

We should discuss this on Monday I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-dev-branchA bug introduced in one of the dev branches that should not affect latest releasedependenciesIssues related to pyaerocom dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions