File tree 4 files changed +17
-14
lines changed
4 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
from ._version import __version__ , version_info
9
- from .commands import get_cmake_dir , get_pkgconfig_dir , get_include
9
+ from .commands import get_cmake_dir , get_include , get_pkgconfig_dir
10
10
11
11
__all__ = (
12
12
"version_info" ,
Original file line number Diff line number Diff line change 4
4
import sys
5
5
import sysconfig
6
6
7
- from .commands import get_cmake_dir , get_pkgconfig_dir , get_include
7
+ from .commands import get_cmake_dir , get_include , get_pkgconfig_dir
8
8
9
9
10
10
def print_includes () -> None :
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ def get_cmake_dir() -> str:
24
24
msg = "pybind11 not installed, installation required to access the CMake files"
25
25
raise ImportError (msg )
26
26
27
+
27
28
def get_pkgconfig_dir () -> str :
28
29
"""
29
30
Return the path to the pybind11 pkgconfig directory.
Original file line number Diff line number Diff line change 5
5
# Copyright 2020 Jan Tojnar
6
6
# https://github.com/jtojnar/cmake-snips
7
7
#
8
- # Modelled after Python’ s os.path.join
8
+ # Modelled after Python' s os.path.join
9
9
# https://docs.python.org/3.7/library/os.path.html#os.path.join
10
10
# Windows not supported
11
11
function (join_paths joined_path first_path_segment)
12
- set (temp_path "${first_path_segment} " )
13
- foreach (current_segment IN LISTS ARGN)
14
- if (NOT ("${current_segment} " STREQUAL "" ))
15
- if (IS_ABSOLUTE "${current_segment} " )
16
- set (temp_path "${current_segment} " )
17
- else ()
18
- set (temp_path "${temp_path} /${current_segment} " )
19
- endif ()
20
- endif ()
21
- endforeach ()
22
- set (${joined_path} "${temp_path} " PARENT_SCOPE)
12
+ set (temp_path "${first_path_segment} " )
13
+ foreach (current_segment IN LISTS ARGN)
14
+ if (NOT ("${current_segment} " STREQUAL "" ))
15
+ if (IS_ABSOLUTE "${current_segment} " )
16
+ set (temp_path "${current_segment} " )
17
+ else ()
18
+ set (temp_path "${temp_path} /${current_segment} " )
19
+ endif ()
20
+ endif ()
21
+ endforeach ()
22
+ set (${joined_path}
23
+ "${temp_path} "
24
+ PARENT_SCOPE)
23
25
endfunction ()
You can’t perform that action at this time.
0 commit comments