Package: sasmodels / 1.0.4-3

Metadata

Package Version Patches format
sasmodels 1.0.4-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
custom_model_pyc.patch | (download)

sasmodels/custom/__init__.py | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 don't fail when pyc files in /usr/lib can't be removed
 sasview tries to open local_config.py using load_module_from_path() but
 local_config.py(c) will be in a read-only location in /usr/lib so this
 fails.
sphinx local mathjax.patch | (download)

doc/conf.py | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 switch to local mathjax for documentation
precompiled_path.patch | (download)

sasmodels/kerneldll.py | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 set library location to pick up precompiled models
 models can be precompiled or compiled just-in-time; for a binary distribution such
 as Debian, it makes sense to precompile the models and ship them in the package.
setup install so.patch | (download)

setup.py | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 have setup.py install the precopmiled model files
reproducible c models.patch | (download)

sasmodels/core.py | 3 2 + 1 - 0 !
sasmodels/generate.py | 12 9 + 3 - 0 !
sasmodels/kerneldll.py | 26 20 + 6 - 0 !
3 files changed, 31 insertions(+), 10 deletions(-)

 make compiled models reproducible
 The C code for the compiled modules is generated on-the-fly, with several source
 files being concatenated and #line directives added to the source too. This patch
 makes the compiled modules reproducible by:
   - stripping the varying build path off the front of the filename in the #line
     directives so that only the relative path to the source is used.
   - saving the generated C source in a stable file location if it is precompiled
     models that are being generated rather than JIT models.
direct model test cleanup.patch | (download)

sasmodels/direct_model.py | 13 13 + 0 - 0 !
1 file changed, 13 insertions(+)

---
pytest6.patch | (download)

conftest.py | 16 7 + 9 - 0 !
1 file changed, 7 insertions(+), 9 deletions(-)

 make tests discovery compatible with pytest 6
    The 'args' keyword for the pytest.Function.from_parent constructor was removed
    with pytest 6. It was unused in pytest [1] and was always an empty tuple in
    the sasmodels code.
    [1] https://github.com/pytest-dev/pytest/pull/7226
    This patch backported from the one provided to upstream.