[NDTensors] Support for older versions of Julia 1.10 and 1.11 #1623
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This circumvents an issue in older versions of Julia 1.10 and 1.11 that made it so that the latest versions of NDTensors.jl/ITensors.jl couldn't be installed, caused by how we have some of our package extensions were configured. Basically, some package extensions depend on TypeParamaterAccessors.jl, but so does the main NDTensors.jl package, so TypeParamaterAccessors.jl is both a dependency and a weak dependency, and in older version of Julia I couldn't find a good way to handle that situation (which I think basically was a bug in the package system in older versions of Julia 1.10 and 1.11 but the origin of the issue is hard to track down). Now, I am using
NDTensors.TypeParamaterAccessors
in the package extensions, so it is no longer seen as a dependency of the package extensions and can just be handled as a normal dependency of the NDTensors.jl package.This issue has been brought up a few times recently: #1618, #1620, https://itensor.discourse.group/t/typeparameteraccessors-not-found-error-on-julia-v-1-10-0/2260.