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

Remove dependency of python_copy on mlpack for Ninja build system #3312

Merged
merged 1 commit into from Nov 14, 2022

Conversation

rcurtin
Copy link
Member

@rcurtin rcurtin commented Nov 11, 2022

The conda-forge build system uses the Ninja generator on Windows. However, I found that Ninja complained of a dependency cycle in targets: python -> python_copy -> mlpack -> python. I am not sure exactly how that happened, but in any case this patch, which simplifies the dependency structure of the Python targets, fixes it. It turns out that python_copy actually does not depend on mlpack, so I removed that, and then made python depend on python_copy. With this, Ninja is happy.

Copy link
Member

@shrit shrit left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@mlpack-bot mlpack-bot bot left a comment

Choose a reason for hiding this comment

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

Second approval provided automatically after 24 hours. 👍

Copy link
Member

@zoq zoq left a comment

Choose a reason for hiding this comment

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

Interesting "issue".

@rcurtin rcurtin merged commit 531db59 into mlpack:master Nov 14, 2022
@rcurtin rcurtin deleted the ninja_python_copy_fix branch November 14, 2022 14:09
@rcurtin rcurtin mentioned this pull request Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants