bare-script 5.1.14__tar.gz → 5.1.15__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {bare_script-5.1.14/src/bare_script.egg-info → bare_script-5.1.15}/PKG-INFO +1 -1
  2. {bare_script-5.1.14 → bare_script-5.1.15}/pyproject.toml +1 -1
  3. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script/runtime.py +4 -2
  4. bare_script-5.1.15/src/bare_script/runtime_c.c +5025 -0
  5. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script/value.py +1 -1
  6. {bare_script-5.1.14 → bare_script-5.1.15/src/bare_script.egg-info}/PKG-INFO +1 -1
  7. bare_script-5.1.14/src/bare_script/runtime_c.c +0 -5410
  8. {bare_script-5.1.14 → bare_script-5.1.15}/LICENSE +0 -0
  9. {bare_script-5.1.14 → bare_script-5.1.15}/README.md +0 -0
  10. {bare_script-5.1.14 → bare_script-5.1.15}/setup.cfg +0 -0
  11. {bare_script-5.1.14 → bare_script-5.1.15}/setup.py +0 -0
  12. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script/__init__.py +0 -0
  13. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script/__main__.py +0 -0
  14. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script/bare.py +0 -0
  15. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script/include.py +0 -0
  16. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script/include_source.py +0 -0
  17. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script/library.py +0 -0
  18. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script/options.py +0 -0
  19. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script.egg-info/SOURCES.txt +0 -0
  20. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script.egg-info/dependency_links.txt +0 -0
  21. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script.egg-info/entry_points.txt +0 -0
  22. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script.egg-info/requires.txt +0 -0
  23. {bare_script-5.1.14 → bare_script-5.1.15}/src/bare_script.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bare-script
3
- Version: 5.1.14
3
+ Version: 5.1.15
4
4
  Summary: BareScript; a lightweight scripting and expression language
5
5
  Author-email: "Craig A. Hobbs" <craigahobbs@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "bare-script"
7
- version = "5.1.14"
7
+ version = "5.1.15"
8
8
  description = "BareScript; a lightweight scripting and expression language"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -211,10 +211,12 @@ def _lint_include(options, include_script, include_url):
211
211
  log_fn(f'BareScript: {warning}')
212
212
 
213
213
 
214
- # Helper to execute a system include library script into a new globals dict
214
+ # Helper to execute a system include library script into a new globals dict, on the package-selected runtime (the
215
+ # C runtime when it's available) - looked up on use because the package imports this module before selecting one
215
216
  def _system_include_globals(url):
217
+ package_execute_script = sys.modules[__package__].execute_script
216
218
  globals_ = {}
217
- execute_script({'statements': [{'include': {'includes': [{'url': url, 'system': True}]}}]}, {'globals': globals_})
219
+ package_execute_script({'statements': [{'include': {'includes': [{'url': url, 'system': True}]}}]}, {'globals': globals_})
218
220
  return globals_
219
221
 
220
222