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 LibXSPEC_jll dependency #134

Merged
merged 6 commits into from
Oct 22, 2024
Merged

Remove LibXSPEC_jll dependency #134

merged 6 commits into from
Oct 22, 2024

Conversation

fjebaker
Copy link
Owner

Starting the efforts to decouple SpectralFitting from (troublesome) dependencies.

LibXSPEC_jll has only been compiled for Linux / Macos and select architectures. This means Windows users cannot install SpectralFitting. With this PR, the XSPEC model library is no longer a requirement for SpectralFitting and can instead be made available by explicitly installing and using XSPECModels from the AstroRegistry.

Decouple the LibXSPEC_jll from SpectralFitting and make it available as
an additional package kept in this source tree. This package is called
`XSPECModels`, and loading both SpectralFitting and XSPECModels will
give exactly the same functionality as before.

SpectralFitting can now be installed without the (currently only)
Linux/Macos precompiled binaries.

Updated the model paths to use `~/.julia/spectral_fitting_data` instead
of the LibXSPEC_jll artifact directory, since this might be in an
unknown location. The model data can now also be used between version
changes without problem and more easily inspected / modified.
@fjebaker fjebaker force-pushed the no-xspec branch 4 times, most recently from efff511 to 37b1d47 Compare October 18, 2024 11:16
@fjebaker fjebaker merged commit 8e05e8a into main Oct 22, 2024
1 check failed
@fjebaker fjebaker deleted the no-xspec branch October 22, 2024 12:09
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.

1 participant