File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ Environment variables
48
48
Please check our :ref: `how-to-guides-editable-installs ` guide for more
49
49
information on how to use it.
50
50
51
- * - ``MACOS_DEPLOYMENT_TARGET ``
51
+ * - ``MACOSX_DEPLOYMENT_TARGET ``
52
52
- Specify the target macOS version.
53
53
54
54
If ``MACOSX_DEPLOYMENT_TARGET `` is set, we will use the selected version
Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ def _get_macosx_platform_tag() -> str:
106
106
pass
107
107
108
108
# Override the macOS version if one is provided via the
109
- # MACOS_DEPLOYMENT_TARGET environment variable.
109
+ # MACOSX_DEPLOYMENT_TARGET environment variable.
110
110
try :
111
- version = tuple (map (int , os .environ .get ('MACOS_DEPLOYMENT_TARGET ' , '' ).split ('.' )))[:2 ]
111
+ version = tuple (map (int , os .environ .get ('MACOSX_DEPLOYMENT_TARGET ' , '' ).split ('.' )))[:2 ]
112
112
except ValueError :
113
113
version = tuple (map (int , ver .split ('.' )))[:2 ]
114
114
Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ def test_wheel_tag():
37
37
@pytest .mark .skipif (platform .system () != 'Darwin' , reason = 'macOS specific test' )
38
38
def test_macos_platform_tag (monkeypatch ):
39
39
for minor in range (9 , 16 ):
40
- monkeypatch .setenv ('MACOS_DEPLOYMENT_TARGET ' , f'10.{ minor } ' )
40
+ monkeypatch .setenv ('MACOSX_DEPLOYMENT_TARGET ' , f'10.{ minor } ' )
41
41
assert next (packaging .tags .mac_platforms ((10 , minor ))) == mesonpy ._tags .get_platform_tag ()
42
42
for major in range (11 , 20 ):
43
43
for minor in range (3 ):
44
- monkeypatch .setenv ('MACOS_DEPLOYMENT_TARGET ' , f'{ major } .{ minor } ' )
44
+ monkeypatch .setenv ('MACOSX_DEPLOYMENT_TARGET ' , f'{ major } .{ minor } ' )
45
45
assert next (packaging .tags .mac_platforms ((major , minor ))) == mesonpy ._tags .get_platform_tag ()
46
46
47
47
You can’t perform that action at this time.
0 commit comments