File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,17 @@ def _maybe_set_xcode_location_cflags(rctx, environment):
73
73
Pip won't be able to compile c extensions from sdists with the pre built python distributions from indygreg
74
74
otherwise. See https://github.com/indygreg/python-build-standalone/issues/103
75
75
"""
76
- python_interpreter_workspace = rctx .path (Label ("@{}//:WORKSPACE" .format (rctx .attr .python_interpreter_target .workspace_name ))).dirname
77
76
if (
78
77
rctx .os .name .lower ().startswith ("mac os" ) and
79
78
rctx .attr .python_interpreter_target != None and
80
79
# This is a rules_python provided toolchain.
81
- rctx .execute (["ls" , "{}/{}" .format (python_interpreter_workspace , STANDALONE_INTERPRETER_FILENAME )]).return_code == 0 and
80
+ rctx .execute ([
81
+ "ls" ,
82
+ "{}/{}" .format (
83
+ rctx .path (Label ("@{}//:WORKSPACE" .format (rctx .attr .python_interpreter_target .workspace_name ))).dirname ,
84
+ STANDALONE_INTERPRETER_FILENAME ,
85
+ ),
86
+ ]).return_code == 0 and
82
87
not environment .get (CPPFLAGS )
83
88
):
84
89
xcode_sdk_location = rctx .execute (["xcode-select" , "--print-path" ])
You can’t perform that action at this time.
0 commit comments