Skip to content

Commit

Permalink
Merge pull request #4004 from isuruf/apple_silicon
Browse files Browse the repository at this point in the history
Add Apple silicon support
  • Loading branch information
jjhelmus authored Aug 5, 2020
2 parents 2b2898f + 28d1289 commit dc6143f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion conda_build/cli/main_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def parse_args(args):
'-p', "--platform",
dest='platforms',
action="append",
choices=['osx-64', 'linux-32', 'linux-64', 'linux-ppc64', 'linux-ppc64le',
choices=['osx-64', 'osx-arm64',
'linux-32', 'linux-64', 'linux-ppc64', 'linux-ppc64le',
'linux-s390x', 'linux-armv6l', 'linux-armv7l', 'linux-aarch64',
'win-32', 'win-64', 'all'],
help="Platform to convert the packages to.",
Expand Down
3 changes: 2 additions & 1 deletion conda_build/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,8 @@ def conda_convert(file_path, output_dir=".", show_imports=False, platforms=None,
source_platform_architecture = '{}-{}' .format(source_platform, architecture)

if 'all' in platforms:
platforms = ['osx-64', 'linux-32', 'linux-64', 'linux-ppc64', 'linux-ppc64le',
platforms = ['osx-64', 'osx-arm64',
'linux-32', 'linux-64', 'linux-ppc64', 'linux-ppc64le',
'linux-s390x', 'linux-armv6l', 'linux-armv7l', 'linux-aarch64',
'win-32', 'win-64']

Expand Down
Empty file added conda_build/meta
Empty file.
2 changes: 1 addition & 1 deletion conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def ns_cfg(config):
d['luajit'] = bool(lua[0] == "2")

for machine in non_x86_linux_machines:
d[machine] = bool(plat == 'linux-%s' % machine)
d[machine] = bool(plat.endswith('-%s' % machine))

for feature, value in feature_list:
d[feature] = value
Expand Down
1 change: 1 addition & 0 deletions conda_build/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def glob(pathname, recursive=True):
"win-64",
"win-32",
"osx-64",
"osx-arm64",
"zos-z",
"noarch",
}
Expand Down

0 comments on commit dc6143f

Please sign in to comment.