Skip to content
  • Guilhem Saurel's avatar
    [CMake] Review python module structure · 9a607113
    Guilhem Saurel authored
    Previously, we only had curves.so, which could be installed in
    PYTHON_SITELIB.
    
    Now, we also want to ship plot.py, so we need the following final
    structure:
    ${PYTHON_SITELIB}/
    └── curves/
        ├── __init__.py
        ├── curves.so
        └── plot.py
    
    Then we can keep the same structure in the build dir, to be able to
    run tests before any installation:
    
    build/
    └── python/
        └── curves/
            ├── __init__.pyc
            ├── curves.so
            └── plot.pyc
    
    And for this, we can once again keep the same structure in the source
    dir:
    
    python/
    └── curves/
        ├── __init__.py
        ├── curves_python.cpp
        └── plot.py
    9a607113