Move QFramework/__init__.py to x86_64-xxx/
While working on #351 (closed), I realized that adding a Python module to QFramework/python
does not make it available in Python via import QFramework.MODULE_NAME
.
The reason is the presence of two conflicting approach in our current CMake setup.
- At configuration-time, the
__init__.py
is generated withgenerateBindings.py
. The file is placed inbuild/CAFCore/QFramework
. - At compile-time, the auxiliary modules in
QFramework/python
are copied (actually sym-linked) tobulid/x86_64-xxx/python/QFramework
. This behavior is implemented inatlas_install_python_modules
and uses the ATLAS-specificCMAKE_PYTHON_OUTPUT_DIRECTORY
variable.
The generated cafsetup.py
gives a higher priority to Python packages in build/CAFCore
and therefore shadows auxiliary modules in build/x86_64/python
.
I would suggest make the behavior consistent with, for example CAH, and change the location of the genereated __init__.py
to bulid/x86_64-xxx/python/QFramework
.