Closes #52
https://github.com/CCPPETMR/SIRF-SuperBuild/pull/53
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
@evgueni-ovtchinnikov requested changes on this pull request.
This does not set PYTHONPATH, does it? So far as I can see, it is set in install/bin/env/ccppetmr.sh.
Indeed you are right, the title of the PR is wrong, it should read "sets the PYTHON_DEST to the install directory". (Fixed it now)
To resume:
PYTHONPATH
is set correctly in the env_ccppetmr.sh
PYTHONPATH
I checked out pythonpath_fix on my VM, but make still builds in SIRF-SuperBuild/INSTALL. Probably the wrong setting still sits in the cache, but I do not remember which file I should delete to empty the cache.
By the way, I printed the value of CCPPETMR_INSTALL and it was empty, whereas SIRF_Install_Dir/python was the same as PYTHONPATH - but changing back from CCPPETMR_INSTALL to SIRF_Install_Dir had no effect.
hi. I don't understand this at all.
a few lines above there's
set(SIRF_Install_Dir ${SUPERBUILD_INSTALL_DIR})
the latter is set in SuperBuild.cmake as
set (SUPERBUILD_INSTALL_DIR ${CMAKE_INSTALL_PREFIX})
so, the original code looks correct to me.
Indeed, on my VM, the Python files sit in devel/install/Python
as they should be. I don't think I did anything special after downloading the 0.9.2 VM to fix that.
I suspect that you are confused by cached variables. PYTHON_DEST
is cached, so once set, will keep its value. This is a bit annoying if you change the install location afterwards. The only way to solve that is by making it a non-cached variable. But that means people can't point it somewhere else.
You can delete a cached variable in cmake-gui or ccmake or using the -U
option to cmake (or edit CMakeCache.txt
but that's obviously dangerous).
2 possible explanations:
set
on cached variable only works once)PYTHON_DEST
. In CMake, if you use a variable first (or of course, if you set it without CACHED
), it creates a non-cached variable. If you then afterwards create a cached variable of the same name, you have 2 different variables around! they'll have 2 different values, and will be used in different contexts. (crazy, I know).@paskino I think we should close this (without merging)?
Closed #53.
Irrelevant, as it is a CMake cache problem.