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 wrap files for xtensor-0.21.5 #3

Closed
wants to merge 1 commit into from

Conversation

danielcjacobs
Copy link

No description provided.

@eli-schwartz
Copy link
Member

Why not go straight to 0.21.10?

@danielcjacobs
Copy link
Author

Why not go straight to 0.21.10?

0.21.5 is the version our projects use right now, we don't currently have the time to update it

@eli-schwartz
Copy link
Member

Since it's actively being used, I'll accept that logic and merge old stuff anyway. :)

@eli-schwartz eli-schwartz changed the base branch from master to 0.21.5 January 6, 2021 20:23
@@ -1,19 +0,0 @@
Copyright (c) 2019 The Meson development team

Permission is hereby granted, free of charge, to any person obtaining a copy
Copy link
Member

Choose a reason for hiding this comment

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

Why are you removing this? Are these license terms not suitable for you? The review policy requires this file to exist.

Copy link
Author

Choose a reason for hiding this comment

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

Looking at existing repos, I only saw this file in master


source_url=https://github.com/xtensor-stack/xtensor/archive/0.21.5.zip
source_filename=xtensor-0.21.5.zip
source_hash=f08aca41dc89128524dec04c82b590d9e0f1e923311e82bab9f024c99e7bb73a
Copy link
Member

Choose a reason for hiding this comment

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

Needs to add https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section

Upstream provides https://github.com/xtensor-stack/xtensor/blob/master/xtensor.pc.in so users should be able to dependency('xtensor') and the [provide] section tells meson how to find that dependency without using fallbacks.


json_dep = dependency('nlohmann_json',
version:'>=3.1.1',
fallback : ['nlohmann_json', 'nlohmann_json_dep'],
Copy link
Member

Choose a reason for hiding this comment

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


xtl_dep = dependency('xtl',
version:['>=0.6.12', '<1.0.0'],
fallback : ['xtl', 'xtl_dep'],
Copy link
Member

Choose a reason for hiding this comment

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

Likewise here, if mesonbuild/quantstack-xtl#1 includes a provide section, you should not need an explicit fallback.

dependencies: [xtl_dep, json_dep, xsimd_dep],
compile_args: xtensor_cpp_arg)
else
xtensor_dep = dependency('', required: false) # aka "not found"
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I comprehend what's going on here. Shouldn't you just make every single required dependency be, well, required, and have the subproject fail if it cannot, in fact, be successfully configured to produce the subproject's entire reason for existing?

Am I missing something?

@danielcjacobs
Copy link
Author

Will think about it and try again later

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.

2 participants