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

Add proper support for CDT packages #125

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JeanChristopheMorinPerso
Copy link
Contributor

This PR adds proper support for CDT packages. The logic mostly follows what conda-build does. I say mostly because it's slightly simpler.

@@ -196,6 +196,22 @@ def expand_compiler(lang):
else:
return f"{compiler}_{selector_dict.get('target_platform', 'win-64')}"

# Based on https://github.com/conda/conda-build/blob/6d7805c97aa6de56346e62a9d1d3582cac00ddb8/conda_build/jinja_context.py#L559-L575 # pylint: disable=line-too-long
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for including the link!

@@ -196,6 +196,22 @@ def expand_compiler(lang):
else:
return f"{compiler}_{selector_dict.get('target_platform', 'win-64')}"

# Based on https://github.com/conda/conda-build/blob/6d7805c97aa6de56346e62a9d1d3582cac00ddb8/conda_build/jinja_context.py#L559-L575 # pylint: disable=line-too-long
def expand_cdt(package_name: str) -> str:
arch = selector_dict["target_platform"].split("-", 1)[-1]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add some unit test examples for this function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants