restage 0.5.1__py3-none-any.whl → 0.6.0__py3-none-any.whl
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.
- restage/cache.py +6 -10
- {restage-0.5.1.dist-info → restage-0.6.0.dist-info}/METADATA +2 -2
- {restage-0.5.1.dist-info → restage-0.6.0.dist-info}/RECORD +6 -6
- {restage-0.5.1.dist-info → restage-0.6.0.dist-info}/WHEEL +0 -0
- {restage-0.5.1.dist-info → restage-0.6.0.dist-info}/entry_points.txt +0 -0
- {restage-0.5.1.dist-info → restage-0.6.0.dist-info}/top_level.txt +0 -0
restage/cache.py
CHANGED
|
@@ -107,24 +107,20 @@ def directory_under_module_data_path(sub: str, prefix=None, suffix=None, name=No
|
|
|
107
107
|
|
|
108
108
|
def _compile_instr(entry: InstrEntry, instr: Instr, config: dict | None = None,
|
|
109
109
|
mpi: bool = False, acc: bool = False,
|
|
110
|
-
target=None,
|
|
111
|
-
from mccode_antlr import __version__
|
|
110
|
+
target=None, flavor=None):
|
|
111
|
+
from mccode_antlr import __version__, Flavor
|
|
112
112
|
from mccode_antlr.compiler.c import compile_instrument, CBinaryTarget
|
|
113
113
|
if config is None:
|
|
114
114
|
config = dict(default_main=True, enable_trace=False, portable=False, include_runtime=True,
|
|
115
115
|
embed_instrument_file=False, verbose=False)
|
|
116
116
|
if target is None:
|
|
117
117
|
target = CBinaryTarget(mpi=mpi or False, acc=acc or False, count=1, nexus=False)
|
|
118
|
-
if
|
|
119
|
-
|
|
120
|
-
generator = MCSTAS_GENERATOR
|
|
118
|
+
if flavor is None:
|
|
119
|
+
flavor = Flavor.MCSTAS
|
|
121
120
|
|
|
122
121
|
output = directory_under_module_data_path('bin')
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
# FIXME a future mccode-antlr will support setting 'source_file={file_path}'
|
|
126
|
-
# to allow exactly this.
|
|
127
|
-
binary_path = compile_instrument(instr, target, output, generator=generator, config=config, dump_source=True)
|
|
122
|
+
source_file = output.joinpath(instr.name).with_suffix('.c')
|
|
123
|
+
binary_path = compile_instrument(instr, target, output, flavor=flavor, config=config, source_file=source_file)
|
|
128
124
|
entry.mccode_version = __version__
|
|
129
125
|
entry.binary_path = str(binary_path)
|
|
130
126
|
return entry
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: restage
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Author-email: Gregory Tucker <gregory.tucker@ess.eu>
|
|
5
5
|
License: BSD-3-Clause
|
|
6
6
|
Classifier: License :: OSI Approved :: BSD License
|
|
@@ -17,7 +17,7 @@ Requires-Dist: zenlog>=1.1
|
|
|
17
17
|
Requires-Dist: platformdirs>=3.11
|
|
18
18
|
Requires-Dist: confuse
|
|
19
19
|
Requires-Dist: psutil>=5.9.6
|
|
20
|
-
Requires-Dist: mccode-antlr[hdf5]>=0.
|
|
20
|
+
Requires-Dist: mccode-antlr[hdf5]>=0.13.0
|
|
21
21
|
Provides-Extra: test
|
|
22
22
|
Requires-Dist: pytest; extra == "test"
|
|
23
23
|
Requires-Dist: chopcal; extra == "test"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
restage/__init__.py,sha256=HlqvPpL7DKet00NAFyqJBNg9UFO7o05Gt2tFyKBQcsY,744
|
|
2
2
|
restage/bifrost_choppers.py,sha256=xQu21g2NcTLPpZ0ZWOuvN20zh07EWoO4QVoTnoORwZI,6443
|
|
3
|
-
restage/cache.py,sha256=
|
|
3
|
+
restage/cache.py,sha256=Xep5j7jzq_qppp1i-KNSxZLpvyeZdDJkTMnB_PEE1gM,7824
|
|
4
4
|
restage/cspec_choppers.py,sha256=ZWxyCcwYn4z9ZNqj_r6RC9ImbhVjYc1fmv-Ijm8A2Yk,206
|
|
5
5
|
restage/database.py,sha256=anyOby31fUN7rGAVNsnWDUhAISV0vQ7en8aQwVS5ZwA,11051
|
|
6
6
|
restage/emulate.py,sha256=VrhfZJIbECdbDS-MHklqRuAIy9cRkjZkwPBTKQSQoe0,6164
|
|
@@ -14,8 +14,8 @@ restage/splitrun.py,sha256=W_pTeiMjc9hhu-zaE6fdetVLG6MGEpnaTOdgmgVkS1g,26061
|
|
|
14
14
|
restage/tables.py,sha256=mL1SrCbgwfWzG-ezd_R3CxOSIZLNZRoC2r7ht59jGMA,16371
|
|
15
15
|
restage/config/__init__.py,sha256=zFRT9QXgpUJpBncELCQ6by1-kjYp8Li1yJDfqxkHxAA,965
|
|
16
16
|
restage/config/default.yaml,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
-
restage-0.
|
|
18
|
-
restage-0.
|
|
19
|
-
restage-0.
|
|
20
|
-
restage-0.
|
|
21
|
-
restage-0.
|
|
17
|
+
restage-0.6.0.dist-info/METADATA,sha256=X4sDrQDtdq4jl0nkymuxCsnxM8QbBJ4_nTiwKWfyNwA,6769
|
|
18
|
+
restage-0.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
19
|
+
restage-0.6.0.dist-info/entry_points.txt,sha256=gghocSxC2gHHxUCalAibCN1mtkh3trNmAfH5Qwx0KYg,149
|
|
20
|
+
restage-0.6.0.dist-info/top_level.txt,sha256=iM_pb-taTZ0S2WMoDnt_qDMZoNMjmM19z3tTCuVm1IE,8
|
|
21
|
+
restage-0.6.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|