Skip to content
GitLab
Explore
Sign in
Register
This is an archived project. Repository and other project resources are read-only.
Commits on Source (5)
New upstream version 1.9~rc3+ds
· 88d96a54
Bas Couwenberg
authored
Apr 05, 2019
88d96a54
Merge tag 'upstream/1.9_rc3+ds'
· e35afe34
Bas Couwenberg
authored
Apr 05, 2019
Upstream version 1.9~rc3+ds
e35afe34
New upstream release candidate.
· 2364c32a
Bas Couwenberg
authored
Apr 05, 2019
2364c32a
Drop cmake-python3-numpy.patch, applied upstream.
· 347791c4
Bas Couwenberg
authored
Apr 05, 2019
347791c4
Set distribution to experimental.
· bc500b29
Bas Couwenberg
authored
Apr 05, 2019
bc500b29
Show whitespace changes
Inline
Side-by-side
cmake/python.cmake
View file @
bc500b29
...
...
@@ -4,8 +4,10 @@
#
# Version 3.12 has shiny new FindPython2 and FindPython3 scripts
# Version 3.14 introduces direct support for NumPy.
# When we require newer cmake versions, ditch the older support.
#
if
(
NOT
(
CMAKE_VERSION VERSION_LESS
"3.1
2
.0"
))
if
(
NOT
(
CMAKE_VERSION VERSION_LESS
"3.1
4
.0"
))
find_package
(
Python3 COMPONENTS Interpreter Development NumPy
)
if
(
NOT Python3_FOUND
)
find_package
(
Python2 2.7 REQUIRED EXACT
...
...
@@ -27,6 +29,28 @@ if (NOT (CMAKE_VERSION VERSION_LESS "3.12.0"))
CACHE PATH
"Location of NumPy include files."
)
endif
()
set
(
PDAL_HAVE_PYTHON 1
)
elseif
(
NOT
(
CMAKE_VERSION VERSION_LESS
"3.12.0"
))
find_package
(
Python3 COMPONENTS Interpreter Development
)
if
(
NOT Python3_FOUND
)
find_package
(
Python2 2.7 REQUIRED EXACT
COMPONENTS Interpreter Development
)
# Since we've required 2.7, these should all be valid
set
(
PYTHON_LIBRARY
${
Python2_LIBRARIES
}
CACHE FILEPATH
"Python library"
)
set
(
PYTHON_INCLUDE_DIR
${
Python2_INCLUDE_DIRS
}
CACHE PATH
"Location of Python include files"
)
set
(
PYTHON_EXECUTABLE
${
Python2_EXECUTABLE
}
)
find_package
(
NumPy 1.5 REQUIRED
)
else
()
set
(
PYTHON_LIBRARY
${
Python3_LIBRARIES
}
CACHE FILEPATH
"Python library"
)
set
(
PYTHON_INCLUDE_DIR
${
Python3_INCLUDE_DIRS
}
CACHE PATH
"Location of Python include files."
)
set
(
PYTHON_EXECUTABLE
${
Python3_EXECUTABLE
}
)
find_package
(
NumPy 1.5 REQUIRED
)
endif
()
set
(
PDAL_HAVE_PYTHON 1
)
else
()
find_package
(
PythonInterp 3 QUIET
)
find_package
(
PythonLibs 3 QUIET
)
...
...
debian/changelog
View file @
bc500b29
pdal (1.9~rc3+ds-1~exp1) experimental; urgency=medium
* New upstream release candidate.
* Drop cmake-python3-numpy.patch, applied upstream.
-- Bas Couwenberg <sebastic@debian.org> Fri, 05 Apr 2019 20:34:26 +0200
pdal (1.9~rc2+ds-1~exp1) experimental; urgency=medium
* New upstream release candidate.
...
...
debian/patches/cmake-python3-numpy.patch
deleted
100644 → 0
View file @
6afadccc
Description: Don't find Numpy component of Python{2,3}.
Author: Bas Couwenberg <sebastic@debian.org>
Bug: https://github.com/PDAL/PDAL/issues/2444
--- a/cmake/python.cmake
+++ b/cmake/python.cmake
@@ -6,10 +6,10 @@
# Version 3.12 has shiny new FindPython2 and FindPython3 scripts
#
if (NOT (CMAKE_VERSION VERSION_LESS "3.12.0"))
- find_package(Python3 COMPONENTS Interpreter Development NumPy)
+ find_package(Python3 COMPONENTS Interpreter Development)
if (NOT Python3_FOUND)
find_package(Python2 2.7 REQUIRED EXACT
- COMPONENTS Interpreter Development NumPy)
+ COMPONENTS Interpreter Development)
# Since we've required 2.7, these should all be valid
set(PYTHON_LIBRARY ${Python2_LIBRARIES}
@@ -18,13 +18,15 @@
if (NOT (CMAKE_VERSION VERSION_LESS "3.1
CACHE PATH "Location of Python include files")
set(PYTHON_NUMPY_INCLUDE_DIR ${Python2_NumPy_INCLUDE_DIRS}
CACHE PATH "Location of NumPy include files.")
+ set(PYTHON_EXECUTABLE ${Python2_EXECUTABLE})
+ find_package(NumPy 1.5 REQUIRED)
else()
set(PYTHON_LIBRARY ${Python3_LIBRARIES}
CACHE FILEPATH "Python library")
set(PYTHON_INCLUDE_DIR ${Python3_INCLUDE_DIRS}
CACHE PATH "Location of Python include files.")
- set(PYTHON_NUMPY_INCLUDE_DIR ${Python3_NumPy_INCLUDE_DIRS}
- CACHE PATH "Location of NumPy include files.")
+ set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
+ find_package(NumPy 1.5 REQUIRED)
endif()
set(PDAL_HAVE_PYTHON 1)
else()
debian/patches/series
View file @
bc500b29
...
...
@@ -2,4 +2,3 @@ privacy-breach.patch
disable-sphinxcontrib-bibtex.patch
use-mathjax-package.patch
sphinx-DOCUMENTATION_OPTIONS-does-not-define-SOURCELINK_SUFFIX.patch
cmake-python3-numpy.patch