Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esmp install broken #981

Closed
doutriaux1 opened this issue Jan 26, 2015 · 0 comments · Fixed by #982
Closed

esmp install broken #981

doutriaux1 opened this issue Jan 26, 2015 · 0 comments · Fixed by #982

Comments

@doutriaux1
Copy link
Contributor

Somehow ESMP_Config.py is now wrong.

It should be:

ESMFMKFILE = "../../../../../Externals/lib/libO/Linux.gfortran.64.mpiuni.default/esmf.mk"

But it is only:

ESMFMKFILE = "../../Externals/lib/libO/Linux.gfortran.64.mpiuni.default/esmf.mk"

Seems to have been introduced by commit 71421b7

Looking at the commit's diff I see:

diff --git a/CMake/cdat_modules/python_pkg.cmake b/CMake/cdat_modules/python_pkg.cmake
index 983ce46..680cd29 100644
--- a/CMake/cdat_modules/python_pkg.cmake
+++ b/CMake/cdat_modules/python_pkg.cmake
@@ -13,36 +13,37 @@ add_cdat_package(Python ${PYTHON_MAJOR_SRC}.${PYTHON_MINOR_SRC}.${PYTHON_PATCH_S
 # FIXME: Name style
 set(CDAT_OS_XTRA_PATH "")

-set(PYTHON_SITE_PACKAGES ${CMAKE_INSTALL_PREFIX})
+set(PYTHON_SITE_PACKAGES_PREFIX ${CMAKE_INSTALL_PREFIX})
+set(PYTHON_SITE_PACKAGES ${PYTHON_SITE_PACKAGES_PREFIX}/lib/python${PYVER}/site-packages)

Notice how SITE_PACKAGES seems longer now

and then later


diff --git a/CMake/cdat_modules_extra/ESMP_install_step.cmake.in b/CMake/cdat_modules_extra/ESMP_install_step.cmake.in
index 1084e52..2b8c288 100644
--- a/CMake/cdat_modules_extra/ESMP_install_step.cmake.in
+++ b/CMake/cdat_modules_extra/ESMP_install_step.cmake.in
@@ -2,7 +2,7 @@
 include(@cdat_CMAKE_BINARY_DIR@/cdat_common_environment.cmake)

 file(GLOB_RECURSE ESMP_esmfmkfile "@cdat_EXTERNALS@/lib/libO/*.mk")
-file(RELATIVE_PATH _rel_path @PYTHON_SITE_PACKAGES@/ESMP/src ${ESMP_esmfmkfile})
+file(RELATIVE_PATH _rel_path @PYTHON_SITE_PACKGES_PREFIX@/ESMP/src ${ESMP_esmfmkfile})

typo here but it doesn't seem to fix the problem..

I guess the issue is why a REL_PATH here? Can't we hard code this?

@doutriaux1 doutriaux1 added this to the 2.1.1 milestone Jan 26, 2015
doutriaux1 added a commit that referenced this issue Jan 26, 2015
full path seems to work and the patch anyway tries to convert relpath back to full path
fix #981
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant