1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
|
%global _empty_manifest_terminate_build 0
Name: python-BytecodeAssembler
Version: 0.6.1
Release: 1
Summary: Generate Python code objects by "assembling" bytecode (Now includes a functional/AST-oriented API, too!)
License: ZPL 2.1
URL: http://pypi.python.org/pypi/BytecodeAssembler
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/51/91/f9faa7ddd6e42c0d8de47e5e06fca2b8b4be56261389ad0dea3abeb1b177/BytecodeAssembler-0.6.1.zip
BuildArch: noarch
%description
``peak.util.assembler`` is a simple bytecode assembler module that handles most
low-level bytecode generation details like jump offsets, stack size tracking,
line number table generation, constant and variable name index tracking, etc.
That way, you can focus your attention on the desired semantics of your
bytecode instead of on these mechanical issues.
In addition to a low-level opcode-oriented API for directly generating specific
Python bytecodes, this module also offers an extensible mini-AST framework for
generating code from high-level specifications. This framework does most of
the work needed to transform tree-like structures into linear bytecode
instructions, and includes the ability to do compile-time constant folding.
Please see the `BytecodeAssembler reference manual`_ for more details.
.. _BytecodeAssembler reference manual: http://peak.telecommunity.com/DevCenter/BytecodeAssembler#toc
Changes since version 0.6:
* Fix bad stack calculations for BUILD_CLASS opcode
Changes since version 0.5.2:
* Symbolic disassembly with full emulation of backward-compatible
``JUMP_IF_TRUE`` and ``JUMP_IF_FALSE`` opcodes on Python 2.7 -- tests now
run clean on Python 2.7.
* Support for backward emulation of Python 2.7's ``JUMP_IF_TRUE_OR_POP`` and
``JUMP_IF_FALSE_OR_POP`` instructions on earlier Python versions; these
emulations are also used in BytecodeAssembler's internal code generation,
for maximum performance on 2.7+ (with no change to performance on older
versions).
Changes since version 0.5.1:
* Initial support for Python 2.7's new opcodes and semantics changes, mostly
by emulating older versions' behavior with macros. (0.5.2 is really just
a quick-fix release to allow packages using BytecodeAssembler to run on 2.7
without having to change any of their code generation; future releases will
provide proper support for the new and changed opcodes, as well as a test
suite that doesn't show spurious differences in the disassembly listings
under Python 2.7.)
Changes since version 0.5:
* Fix incorrect stack size calculation for ``MAKE_CLOSURE`` on Python 2.5+
Changes since version 0.3:
* New node types:
* ``For(iterable, assign, body)`` -- define a "for" loop over `iterable`
* ``UnpackSequence(nodes)`` -- unpacks a sequence that's ``len(nodes)`` long,
and then generates the given nodes.
* ``LocalAssign(name)`` -- issues a ``STORE_FAST``, ``STORE_DEREF`` or
``STORE_LOCAL`` as appropriate for the given name.
* ``Function(body, name='<lambda>', args=(), var=None, kw=None, defaults=())``
-- creates a nested function from `body` and puts it on the stack.
* ``If(cond, then_, else_=Pass)`` -- "if" statement analogue
* ``ListComp(body)`` and ``LCAppend(value)`` -- implement list comprehensions
* ``YieldStmt(value)`` -- generates a ``YIELD_VALUE`` (plus a ``POP_TOP`` in
Python 2.5+)
* ``Code`` objects are now iterable, yielding ``(offset, op, arg)`` triples,
where `op` is numeric and `arg` is either numeric or ``None``.
* ``Code`` objects' ``.code()`` method can now take a "parent" ``Code`` object,
to link the child code's free variables to cell variables in the parent.
* Added ``Code.from_spec()`` classmethod, that initializes a code object from a
name and argument spec.
* ``Code`` objects now have a ``.nested(name, args, var, kw)`` method, that
creates a child code object with the same ``co_filename`` and the supplied
name/arg spec.
* Fixed incorrect stack tracking for the ``FOR_ITER`` and ``YIELD_VALUE``
opcodes
* Ensure that ``CO_GENERATOR`` flag is set if ``YIELD_VALUE`` opcode is used
* Change tests so that Python 2.3's broken line number handling in ``dis.dis``
and constant-folding optimizer don't generate spurious failures in this
package's test suite.
Changes since version 0.2:
* Added ``Suite``, ``TryExcept``, and ``TryFinally`` node types
* Added a ``Getattr`` node type that does static or dynamic attribute access
and constant folding
* Fixed ``code.from_function()`` not copying the ``co_filename`` attribute when
``copy_lineno`` was specified.
* The ``repr()`` of AST nodes doesn't include a trailing comma for 1-argument
node types any more.
* Added a ``Pass`` symbol that generates no code, a ``Compare()`` node type
that does n-way comparisons, and ``And()`` and ``Or()`` node types for doing
logical operations.
* The ``COMPARE_OP()`` method now accepts operator strings like ``"<="``,
``"not in"``, ``"exception match"``, and so on, as well as numeric opcodes.
See the standard library's ``opcode`` module for a complete list of the
strings accepted (in the ``cmp_op`` tuple). ``"<>"`` is also accepted as an
alias for ``"!="``.
* Added code to verify that forward jump offsets don't exceed a 64KB span, and
support absolute backward jumps to locations >64KB.
Changes since version 0.1:
* Constant handling has been fixed so that it doesn't confuse equal values of
differing types (e.g. ``1.0`` and ``True``), or equal unhashable objects
(e.g. two empty lists).
* Removed ``nil``, ``ast_curry()`` and ``folding_curry()``, replacing them with
the ``nodetype()`` decorator and ``fold_args()``; please see the docs for
more details.
* Added stack tracking across jumps, globally verifying stack level prediction
consistency and automatically rejecting attempts to generate dead code. It
should now be virtually impossible to accidentally generate bytecode that can
crash the interpreter. (If you find a way, let me know!)
Changes since version 0.0.1:
* Added massive quantities of new documentation and examples
* Full block, loop, and closure support
* High-level functional code generation from trees, with smart labels and
blocks, constant folding, extensibility, smart local variable names, etc.
* The ``.label()`` method was renamed to ``.here()`` to distinguish it from
the new smart ``Label`` objects.
* Docs and tests were moved to README.txt instead of assembler.txt
* Added a demo that implements a "switch"-like statement template that shows
how to extend the code generation system and how to abuse ``END_FINALLY``
to implement a "computed goto" in bytecode.
* Various bug fixes
There are a few features that aren't tested yet, and not all opcodes may be
fully supported. Also note the following limitations:
* Jumps to as-yet-undefined labels cannot span a distance greater than 65,535
bytes.
* The ``dis()`` function in Python 2.3 has a bug that makes it show incorrect
line numbers when the difference between two adjacent line numbers is
greater than 255. (To work around this, the test_suite uses a later version
of ``dis()``, but do note that it may affect your own tests if you use
``dis()`` with Python 2.3 and use widely separated line numbers.)
If you find any other issues, please let me know.
Please also keep in mind that this is a work in progress, and the API may
change if I come up with a better way to do something.
Questions and discussion regarding this software should be directed to the
`PEAK Mailing List <http://www.eby-sarna.com/mailman/listinfo/peak>`_.
.. _toc:
%package -n python3-BytecodeAssembler
Summary: Generate Python code objects by "assembling" bytecode (Now includes a functional/AST-oriented API, too!)
Provides: python-BytecodeAssembler
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-BytecodeAssembler
``peak.util.assembler`` is a simple bytecode assembler module that handles most
low-level bytecode generation details like jump offsets, stack size tracking,
line number table generation, constant and variable name index tracking, etc.
That way, you can focus your attention on the desired semantics of your
bytecode instead of on these mechanical issues.
In addition to a low-level opcode-oriented API for directly generating specific
Python bytecodes, this module also offers an extensible mini-AST framework for
generating code from high-level specifications. This framework does most of
the work needed to transform tree-like structures into linear bytecode
instructions, and includes the ability to do compile-time constant folding.
Please see the `BytecodeAssembler reference manual`_ for more details.
.. _BytecodeAssembler reference manual: http://peak.telecommunity.com/DevCenter/BytecodeAssembler#toc
Changes since version 0.6:
* Fix bad stack calculations for BUILD_CLASS opcode
Changes since version 0.5.2:
* Symbolic disassembly with full emulation of backward-compatible
``JUMP_IF_TRUE`` and ``JUMP_IF_FALSE`` opcodes on Python 2.7 -- tests now
run clean on Python 2.7.
* Support for backward emulation of Python 2.7's ``JUMP_IF_TRUE_OR_POP`` and
``JUMP_IF_FALSE_OR_POP`` instructions on earlier Python versions; these
emulations are also used in BytecodeAssembler's internal code generation,
for maximum performance on 2.7+ (with no change to performance on older
versions).
Changes since version 0.5.1:
* Initial support for Python 2.7's new opcodes and semantics changes, mostly
by emulating older versions' behavior with macros. (0.5.2 is really just
a quick-fix release to allow packages using BytecodeAssembler to run on 2.7
without having to change any of their code generation; future releases will
provide proper support for the new and changed opcodes, as well as a test
suite that doesn't show spurious differences in the disassembly listings
under Python 2.7.)
Changes since version 0.5:
* Fix incorrect stack size calculation for ``MAKE_CLOSURE`` on Python 2.5+
Changes since version 0.3:
* New node types:
* ``For(iterable, assign, body)`` -- define a "for" loop over `iterable`
* ``UnpackSequence(nodes)`` -- unpacks a sequence that's ``len(nodes)`` long,
and then generates the given nodes.
* ``LocalAssign(name)`` -- issues a ``STORE_FAST``, ``STORE_DEREF`` or
``STORE_LOCAL`` as appropriate for the given name.
* ``Function(body, name='<lambda>', args=(), var=None, kw=None, defaults=())``
-- creates a nested function from `body` and puts it on the stack.
* ``If(cond, then_, else_=Pass)`` -- "if" statement analogue
* ``ListComp(body)`` and ``LCAppend(value)`` -- implement list comprehensions
* ``YieldStmt(value)`` -- generates a ``YIELD_VALUE`` (plus a ``POP_TOP`` in
Python 2.5+)
* ``Code`` objects are now iterable, yielding ``(offset, op, arg)`` triples,
where `op` is numeric and `arg` is either numeric or ``None``.
* ``Code`` objects' ``.code()`` method can now take a "parent" ``Code`` object,
to link the child code's free variables to cell variables in the parent.
* Added ``Code.from_spec()`` classmethod, that initializes a code object from a
name and argument spec.
* ``Code`` objects now have a ``.nested(name, args, var, kw)`` method, that
creates a child code object with the same ``co_filename`` and the supplied
name/arg spec.
* Fixed incorrect stack tracking for the ``FOR_ITER`` and ``YIELD_VALUE``
opcodes
* Ensure that ``CO_GENERATOR`` flag is set if ``YIELD_VALUE`` opcode is used
* Change tests so that Python 2.3's broken line number handling in ``dis.dis``
and constant-folding optimizer don't generate spurious failures in this
package's test suite.
Changes since version 0.2:
* Added ``Suite``, ``TryExcept``, and ``TryFinally`` node types
* Added a ``Getattr`` node type that does static or dynamic attribute access
and constant folding
* Fixed ``code.from_function()`` not copying the ``co_filename`` attribute when
``copy_lineno`` was specified.
* The ``repr()`` of AST nodes doesn't include a trailing comma for 1-argument
node types any more.
* Added a ``Pass`` symbol that generates no code, a ``Compare()`` node type
that does n-way comparisons, and ``And()`` and ``Or()`` node types for doing
logical operations.
* The ``COMPARE_OP()`` method now accepts operator strings like ``"<="``,
``"not in"``, ``"exception match"``, and so on, as well as numeric opcodes.
See the standard library's ``opcode`` module for a complete list of the
strings accepted (in the ``cmp_op`` tuple). ``"<>"`` is also accepted as an
alias for ``"!="``.
* Added code to verify that forward jump offsets don't exceed a 64KB span, and
support absolute backward jumps to locations >64KB.
Changes since version 0.1:
* Constant handling has been fixed so that it doesn't confuse equal values of
differing types (e.g. ``1.0`` and ``True``), or equal unhashable objects
(e.g. two empty lists).
* Removed ``nil``, ``ast_curry()`` and ``folding_curry()``, replacing them with
the ``nodetype()`` decorator and ``fold_args()``; please see the docs for
more details.
* Added stack tracking across jumps, globally verifying stack level prediction
consistency and automatically rejecting attempts to generate dead code. It
should now be virtually impossible to accidentally generate bytecode that can
crash the interpreter. (If you find a way, let me know!)
Changes since version 0.0.1:
* Added massive quantities of new documentation and examples
* Full block, loop, and closure support
* High-level functional code generation from trees, with smart labels and
blocks, constant folding, extensibility, smart local variable names, etc.
* The ``.label()`` method was renamed to ``.here()`` to distinguish it from
the new smart ``Label`` objects.
* Docs and tests were moved to README.txt instead of assembler.txt
* Added a demo that implements a "switch"-like statement template that shows
how to extend the code generation system and how to abuse ``END_FINALLY``
to implement a "computed goto" in bytecode.
* Various bug fixes
There are a few features that aren't tested yet, and not all opcodes may be
fully supported. Also note the following limitations:
* Jumps to as-yet-undefined labels cannot span a distance greater than 65,535
bytes.
* The ``dis()`` function in Python 2.3 has a bug that makes it show incorrect
line numbers when the difference between two adjacent line numbers is
greater than 255. (To work around this, the test_suite uses a later version
of ``dis()``, but do note that it may affect your own tests if you use
``dis()`` with Python 2.3 and use widely separated line numbers.)
If you find any other issues, please let me know.
Please also keep in mind that this is a work in progress, and the API may
change if I come up with a better way to do something.
Questions and discussion regarding this software should be directed to the
`PEAK Mailing List <http://www.eby-sarna.com/mailman/listinfo/peak>`_.
.. _toc:
%package help
Summary: Development documents and examples for BytecodeAssembler
Provides: python3-BytecodeAssembler-doc
%description help
``peak.util.assembler`` is a simple bytecode assembler module that handles most
low-level bytecode generation details like jump offsets, stack size tracking,
line number table generation, constant and variable name index tracking, etc.
That way, you can focus your attention on the desired semantics of your
bytecode instead of on these mechanical issues.
In addition to a low-level opcode-oriented API for directly generating specific
Python bytecodes, this module also offers an extensible mini-AST framework for
generating code from high-level specifications. This framework does most of
the work needed to transform tree-like structures into linear bytecode
instructions, and includes the ability to do compile-time constant folding.
Please see the `BytecodeAssembler reference manual`_ for more details.
.. _BytecodeAssembler reference manual: http://peak.telecommunity.com/DevCenter/BytecodeAssembler#toc
Changes since version 0.6:
* Fix bad stack calculations for BUILD_CLASS opcode
Changes since version 0.5.2:
* Symbolic disassembly with full emulation of backward-compatible
``JUMP_IF_TRUE`` and ``JUMP_IF_FALSE`` opcodes on Python 2.7 -- tests now
run clean on Python 2.7.
* Support for backward emulation of Python 2.7's ``JUMP_IF_TRUE_OR_POP`` and
``JUMP_IF_FALSE_OR_POP`` instructions on earlier Python versions; these
emulations are also used in BytecodeAssembler's internal code generation,
for maximum performance on 2.7+ (with no change to performance on older
versions).
Changes since version 0.5.1:
* Initial support for Python 2.7's new opcodes and semantics changes, mostly
by emulating older versions' behavior with macros. (0.5.2 is really just
a quick-fix release to allow packages using BytecodeAssembler to run on 2.7
without having to change any of their code generation; future releases will
provide proper support for the new and changed opcodes, as well as a test
suite that doesn't show spurious differences in the disassembly listings
under Python 2.7.)
Changes since version 0.5:
* Fix incorrect stack size calculation for ``MAKE_CLOSURE`` on Python 2.5+
Changes since version 0.3:
* New node types:
* ``For(iterable, assign, body)`` -- define a "for" loop over `iterable`
* ``UnpackSequence(nodes)`` -- unpacks a sequence that's ``len(nodes)`` long,
and then generates the given nodes.
* ``LocalAssign(name)`` -- issues a ``STORE_FAST``, ``STORE_DEREF`` or
``STORE_LOCAL`` as appropriate for the given name.
* ``Function(body, name='<lambda>', args=(), var=None, kw=None, defaults=())``
-- creates a nested function from `body` and puts it on the stack.
* ``If(cond, then_, else_=Pass)`` -- "if" statement analogue
* ``ListComp(body)`` and ``LCAppend(value)`` -- implement list comprehensions
* ``YieldStmt(value)`` -- generates a ``YIELD_VALUE`` (plus a ``POP_TOP`` in
Python 2.5+)
* ``Code`` objects are now iterable, yielding ``(offset, op, arg)`` triples,
where `op` is numeric and `arg` is either numeric or ``None``.
* ``Code`` objects' ``.code()`` method can now take a "parent" ``Code`` object,
to link the child code's free variables to cell variables in the parent.
* Added ``Code.from_spec()`` classmethod, that initializes a code object from a
name and argument spec.
* ``Code`` objects now have a ``.nested(name, args, var, kw)`` method, that
creates a child code object with the same ``co_filename`` and the supplied
name/arg spec.
* Fixed incorrect stack tracking for the ``FOR_ITER`` and ``YIELD_VALUE``
opcodes
* Ensure that ``CO_GENERATOR`` flag is set if ``YIELD_VALUE`` opcode is used
* Change tests so that Python 2.3's broken line number handling in ``dis.dis``
and constant-folding optimizer don't generate spurious failures in this
package's test suite.
Changes since version 0.2:
* Added ``Suite``, ``TryExcept``, and ``TryFinally`` node types
* Added a ``Getattr`` node type that does static or dynamic attribute access
and constant folding
* Fixed ``code.from_function()`` not copying the ``co_filename`` attribute when
``copy_lineno`` was specified.
* The ``repr()`` of AST nodes doesn't include a trailing comma for 1-argument
node types any more.
* Added a ``Pass`` symbol that generates no code, a ``Compare()`` node type
that does n-way comparisons, and ``And()`` and ``Or()`` node types for doing
logical operations.
* The ``COMPARE_OP()`` method now accepts operator strings like ``"<="``,
``"not in"``, ``"exception match"``, and so on, as well as numeric opcodes.
See the standard library's ``opcode`` module for a complete list of the
strings accepted (in the ``cmp_op`` tuple). ``"<>"`` is also accepted as an
alias for ``"!="``.
* Added code to verify that forward jump offsets don't exceed a 64KB span, and
support absolute backward jumps to locations >64KB.
Changes since version 0.1:
* Constant handling has been fixed so that it doesn't confuse equal values of
differing types (e.g. ``1.0`` and ``True``), or equal unhashable objects
(e.g. two empty lists).
* Removed ``nil``, ``ast_curry()`` and ``folding_curry()``, replacing them with
the ``nodetype()`` decorator and ``fold_args()``; please see the docs for
more details.
* Added stack tracking across jumps, globally verifying stack level prediction
consistency and automatically rejecting attempts to generate dead code. It
should now be virtually impossible to accidentally generate bytecode that can
crash the interpreter. (If you find a way, let me know!)
Changes since version 0.0.1:
* Added massive quantities of new documentation and examples
* Full block, loop, and closure support
* High-level functional code generation from trees, with smart labels and
blocks, constant folding, extensibility, smart local variable names, etc.
* The ``.label()`` method was renamed to ``.here()`` to distinguish it from
the new smart ``Label`` objects.
* Docs and tests were moved to README.txt instead of assembler.txt
* Added a demo that implements a "switch"-like statement template that shows
how to extend the code generation system and how to abuse ``END_FINALLY``
to implement a "computed goto" in bytecode.
* Various bug fixes
There are a few features that aren't tested yet, and not all opcodes may be
fully supported. Also note the following limitations:
* Jumps to as-yet-undefined labels cannot span a distance greater than 65,535
bytes.
* The ``dis()`` function in Python 2.3 has a bug that makes it show incorrect
line numbers when the difference between two adjacent line numbers is
greater than 255. (To work around this, the test_suite uses a later version
of ``dis()``, but do note that it may affect your own tests if you use
``dis()`` with Python 2.3 and use widely separated line numbers.)
If you find any other issues, please let me know.
Please also keep in mind that this is a work in progress, and the API may
change if I come up with a better way to do something.
Questions and discussion regarding this software should be directed to the
`PEAK Mailing List <http://www.eby-sarna.com/mailman/listinfo/peak>`_.
.. _toc:
%prep
%autosetup -n BytecodeAssembler-0.6.1
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-BytecodeAssembler -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.1-1
- Package Spec generated
|