Skip to content

PYMCA_DATA_DIR patching in setup.py: do not use defaultDataPath #1203

@woutdenolf

Description

@woutdenolf

The idea sounds good to me. However, I imagine it might prevent testing the code from the source directory prior to installation unless the search is modified.

If we don't install the project then setup.py does not patch PyMcaDataDir.py and we still have PYMCA_DATA_DIR = r'DATA_DIR_FROM_SETUP' which triggers the search.

I still think patching PyMcaDataDir.py with the defaultDataPath in setup.py can be removed. Hard-coding a relative path when installing/building a project is not a good idea imo.

Originally posted by @woutdenolf in #1198 (comment)

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