File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
import os
3
- import platform
4
3
import subprocess
5
4
import sys
6
5
17
16
from skbuild .constants import CMAKE_INSTALL_DIR as SKBUILD_CMAKE_INSTALL_DIR
18
17
from skbuild .constants import set_skbuild_plat_name
19
18
20
- if platform .system (). lower () == "darwin" :
19
+ if sys . platform .startswith ( "darwin" ) :
21
20
# Since building the project specifying --plat-name or CMAKE_OSX_* variables
22
21
# leads to different SKBUILD_DIR, the code below attempt to guess the most
23
22
# likely plat-name.
31
30
if os .path .exists (_cmake_data ):
32
31
CMAKE_DATA = _cmake_data
33
32
34
- if platform .system (). lower () == "darwin" :
33
+ if sys . platform .startswith ( "darwin" ) :
35
34
CMAKE_DATA = os .path .join (CMAKE_DATA , 'CMake.app' , 'Contents' )
36
35
37
36
CMAKE_BIN_DIR = os .path .join (CMAKE_DATA , 'bin' )
You can’t perform that action at this time.
0 commit comments