Skip to content

Commit

Permalink
Warn about future macOS name change
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Sep 13, 2024
1 parent 89348cc commit 08409b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions constructor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import logging
import os
import sys
import warnings
from os.path import abspath, expanduser, isdir, join
from textwrap import dedent, indent

Expand Down Expand Up @@ -58,6 +59,13 @@ def get_output_filename(info):

osname, arch = info['_platform'].split('-')
os_map = {'linux': 'Linux', 'osx': 'MacOSX', 'win': 'Windows'}
if osname == "osx":
warnings.warn(
"constructor 3.11.* will use the 'macOS' label (instead of 'MacOSX') for "
"the osx-* platforms. This will change the default name of the generated installers. "
"Use 'installer_filename' to control this default behavior.",
FutureWarning,
)
arch_name_map = {'64': 'x86_64', '32': 'x86'}
ext = info['installer_type']
return '%s-%s-%s.%s' % ('%(name)s-%(version)s' % info,
Expand Down

0 comments on commit 08409b5

Please sign in to comment.