File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22import os
3- import platform
43import subprocess
54import sys
65
1716 from skbuild .constants import CMAKE_INSTALL_DIR as SKBUILD_CMAKE_INSTALL_DIR
1817 from skbuild .constants import set_skbuild_plat_name
1918
20- if platform .system (). lower () == "darwin" :
19+ if sys . platform .startswith ( "darwin" ) :
2120 # Since building the project specifying --plat-name or CMAKE_OSX_* variables
2221 # leads to different SKBUILD_DIR, the code below attempt to guess the most
2322 # likely plat-name.
3130 if os .path .exists (_cmake_data ):
3231 CMAKE_DATA = _cmake_data
3332
34- if platform .system (). lower () == "darwin" :
33+ if sys . platform .startswith ( "darwin" ) :
3534 CMAKE_DATA = os .path .join (CMAKE_DATA , 'CMake.app' , 'Contents' )
3635
3736CMAKE_BIN_DIR = os .path .join (CMAKE_DATA , 'bin' )
You can’t perform that action at this time.
0 commit comments