Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH try upload again #441

Merged
merged 4 commits into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@ github:
tooling_branch_name: main
provider:
linux_ppc64le: travis
conda_pkg_format: 2
azure:
store_build_artifacts: true
conda_build:
pkg_format: '2'
19 changes: 14 additions & 5 deletions recipe/conda_forge_ci_setup/build_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,24 @@ def maybe_use_dot_conda(feedstock_root):
if os.path.exists(os.path.join(feedstock_root, "conda-forge.yml")):
with open(os.path.join(feedstock_root, "conda-forge.yml")) as f:
repo_config = safe_load(f)
pkg_format = repo_config.get("conda_pkg_format", None)
pkg_format = repo_config.get("conda_build", {}).get("pkg_format", None)
if pkg_format is not None:
try:
call([
"conda", "config", "--env", "--set",
"conda_build.pkg_format", str(pkg_format)
])

# set compression level for v2 format
zlev = repo_config.get(
"conda_build", {}
).get(
"zstd_compression_level", 16
)
if zlev is not None and str(pkg_format) == "2":
call([
"conda", "config", "--env", "--set",
"conda_build.pkg_format", str(pkg_format)
"conda_build.zstd_compression_level", str(zlev)
])
except subprocess.CalledProcessError:
pass


@click.command()
Expand Down