Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hamburg LOFAR Toolkit Installation Script
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Außerplanmäßige Wartung heute um 16:40 wegen einer Sicherheitswarnung von GitLab
Show more breadcrumbs
hpc
Hamburg LOFAR Toolkit Installation Script
Commits
d86e8fbc
Commit
d86e8fbc
authored
May 22, 2020
by
Francesco Gasperin fdg@hs.uni-hamburg.de
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
6d09d1e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
DP3-buildfix.patch
+7
-70
7 additions, 70 deletions
DP3-buildfix.patch
with
7 additions
and
70 deletions
DP3-buildfix.patch
+
7
−
70
View file @
d86e8fbc
...
...
@@ -35,7 +35,7 @@ index e4689f7..9068fdd 100644
endforeach(_comp ${_find_components})
endif(NOT CASACORE_INCLUDE_DIR)
diff --git a/CMake/PythonInstall.cmake b/CMake/PythonInstall.cmake
index 173f995..
a1357c7
100644
index 173f995..
c15bbab
100644
--- a/CMake/PythonInstall.cmake
+++ b/CMake/PythonInstall.cmake
@@ -24,10 +24,11 @@
...
...
@@ -48,7 +48,7 @@ index 173f995..a1357c7 100644
# Derive the Python site-packages installation directory and build directory.
-if(PYTHON_EXECUTABLE)
+if(Python
3
_EXECUTABLE)
+if(Python_EXECUTABLE)
set(_cmd
"from distutils.sysconfig import get_python_lib"
"from os.path import join"
...
...
@@ -57,7 +57,7 @@ index 173f995..a1357c7 100644
)
execute_process(
- COMMAND "${PYTHON_EXECUTABLE}" "-c" "${_cmd}"
+ COMMAND "${Python
3
_EXECUTABLE}" "-c" "${_cmd}"
+ COMMAND "${Python_EXECUTABLE}" "-c" "${_cmd}"
OUTPUT_VARIABLE _pydir
ERROR_VARIABLE _pyerr
OUTPUT_STRIP_TRAILING_WHITESPACE)
...
...
@@ -66,7 +66,7 @@ index 173f995..a1357c7 100644
message(STATUS "Installation directory for Python extensions: ${PYTHON_INSTALL_DIR}")
endif()
-endif(PYTHON_EXECUTABLE)
+endif(Python
3
_EXECUTABLE)
+endif(Python_EXECUTABLE)
#
...
...
@@ -75,10 +75,10 @@ index 173f995..a1357c7 100644
# Precondition check.
- if(NOT PYTHON_EXECUTABLE)
+ if(NOT Python
3
_EXECUTABLE)
+ if(NOT Python_EXECUTABLE)
message(FATAL_ERROR "python_install: Python interpreter not available")
- endif(NOT PYTHON_EXECUTABLE)
+ endif(NOT Python
3
_EXECUTABLE)
+ endif(NOT Python_EXECUTABLE)
# Parse arguments.
# apart from the python files list, there are two additional arguments
...
...
@@ -110,24 +110,16 @@ index 9194dc7..c8284a8 100644
else()
message (WARNING, " Boost-Python not found; PythonDPPP will not be built.")
diff --git a/CMakeLists.txt b/CMakeLists.txt
<<<<<<< HEAD
index 9194dc7..c8284a8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,15 +44,49 @@
=======
index 0ae97ae..3abc84e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,13 +44,14 @@
endif(IDGAPI_LIBRARIES AND IDGAPI_INCLUDE_DIRS)
>>>>>>> 6e37020c9132f4f5257a5c4e48e41465683e0c4e
find_package(CFITSIO REQUIRED)
-find_package(PythonLibs 3 REQUIRED)
-find_package(PythonInterp REQUIRED)
-message(STATUS "Using python version ${PYTHON_VERSION_STRING}")
<<<<<<< HEAD
+#find_package(PythonLibs 3 REQUIRED)
+#find_package(PythonInterp REQUIRED)
+#message(STATUS "Using python version ${PYTHON_VERSION_STRING}")
...
...
@@ -155,17 +147,9 @@ index 0ae97ae..3abc84e 100644
+ set(Python_LIBRARIES ${PYTHON_LIBRARIES})
+ set(Python_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS})
+endif()
=======
+find_package(Python3 COMPONENTS Interpreter Development)
+message(STATUS "Using python version ${Python3_VERSION}")
>>>>>>> 6e37020c9132f4f5257a5c4e48e41465683e0c4e
+
+include_directories(${Python3_INCLUDE_DIRS})
#Prevent accidentally finding old BoostConfig.cmake file from casapy
set(Boost_NO_BOOST_CMAKE ON)
-set(BOOSTPY ${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR})
<<<<<<< HEAD
-find_package(Boost COMPONENTS date_time filesystem python${BOOSTPY} numpy${BOOSTPY} program_options system unit_test_framework REQUIRED)
+#set(BOOSTPY ${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR})
+#find_package(Boost COMPONENTS date_time filesystem python${BOOSTPY} numpy${BOOSTPY} program_options system unit_test_framework REQUIRED)
...
...
@@ -179,13 +163,9 @@ index 0ae97ae..3abc84e 100644
+ find_package(Boost REQUIRED COMPONENTS ${boostcomp} python${boostpy})
+endif()
+
=======
+set(BOOSTPY ${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR})
find_package(Boost COMPONENTS date_time filesystem python${BOOSTPY} numpy${BOOSTPY} program_options system unit_test_framework REQUIRED)
>>>>>>> 6e37020c9132f4f5257a5c4e48e41465683e0c4e
include_directories(${Boost_INCLUDE_DIR})
+include_directories(${Python_INCLUDE_DIRS})
<<<<<<< HEAD
find_path(LOFAR_STATION_RESPONSE_DIR NAMES StationResponse/Station.h)
find_library(LOFAR_STATION_RESPONSE_LIB stationresponse)
@@ -196,9 +230,11 @@
...
...
@@ -202,46 +182,3 @@ index 0ae97ae..3abc84e 100644
${IDGAPI_LIBRARIES}
Threads::Threads)
=======
@@ -198,7 +199,7 @@
set(EXTRA_LIBRARIES ${EXTRA_LIBRARIES}
${CASACORE_LIBRARIES}
${Boost_LIBRARIES}
${EXTRA_LIBRARIES}
- ${PYTHON_LIBRARIES}
+ ${Python3_LIBRARIES}
${IDGAPI_LIBRARIES}
Threads::Threads)
diff --git a/PythonDPPP/CMakeLists.txt b/PythonDPPP/CMakeLists.txt
index 9194dc7..afd8545 100644
--- a/PythonDPPP/CMakeLists.txt
+++ b/PythonDPPP/CMakeLists.txt
@@ -1,5 +1,7 @@
# If Boost-Python3 found, build this package. Otherwise give a warning.
-if(${Boost_PYTHON3_FOUND})
+#if(${Boost_PYTHON${boostpy}_FOUND})
+# We set Boost-python as reuired in toplevel build file.
+if(TRUE)
include(PythonInstall)
@@ -25,16 +27,7 @@
if(${Boost_PYTHON3_FOUND})
# Install Python modules
python_install(__init__.py DESTINATION lofar/pythondppp)
- find_package(PythonInterp REQUIRED)
- find_package(PythonLibs 3 REQUIRED)
- include_directories(${PYTHON_INCLUDE_DIRS})
-
- find_package(Casacore COMPONENTS python)
-
- find_package(Boost REQUIRED COMPONENTS python3)
- include_directories(${Boost_INCLUDE_DIR})
-
# add_subdirectory(test)
-else()
- message (WARNING, " Boost-Python not found; PythonDPPP will not be built.")
+#else()
+# message (WARNING, " Boost-Python not found; PythonDPPP will not be built.")
endif()
>>>>>>> 6e37020c9132f4f5257a5c4e48e41465683e0c4e
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment