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
|
=head1 NAME
enamlcompile - Byte compile Enaml source files
=head1 SYNOPSIS
B<enamlcompile> [-V I<VERSION_RANGE>] [-p I<PACKAGE>] [F<DIR_OF_FILE>]
=head1 DESCRIPTION
Wrapper around the C<enaml.compile> module to byte-compile Enaml files.
=head1 OPTIONS
=over 4
=item B<-h>, B<--help>
Print a help message and exit
=item B<-v>, B<--verbose>
Turn on verbose mode
=item B<-q>, B<--quiet>
Be quiet
=item B<-f>, B<--force>
Force the rebuild of the byte-code files, even if the files already exists
=item B<-p> I<PACKAGE>, B<--package=>I<PACKAGE>
Specify Debian package name to whose files should be bytecompiled
=item B<-V> I<VERSION_RANGE>
Force Enaml source files from private module directories to be bytecompiled
with the Python 3 versions matching the given range, regardless of the default
Python 3 version in the system.
If there are no other options, bytecompile all Enaml source files from public
module directories for the installed Python 3 versions that match the given
range.
I<VERSION_RANGE> examples:
=over 12
=item C<3.1>
version 3.1 only
=item C<3.1->
version 3.1 or newer
=item C<3.1-3.3>
version 3.1 or 3.2
=item C<-4.0>
all supported 3.X versions
=back
=back
=head1 EXAMPLES
enamlcompile -p python3-foo
Byte-compile enaml files from package's public files. The Python version is
automatically detected from the file path.
enamlcompile -p python3-foo /usr/share/foo
Byte-compile enaml files form package's private files for all installed Python
versions.
enamlcompile -V 3.11 /usr/lib/python3/
Byte-compile all enaml files for Python 3.11.
enamlcompile -V 3.9-3.11 /usr/lib/foo/bar.enaml
Byte-compile the given enaml file for Python 3.9 and Python 3.10 only.
enamlcompile -V 3.9- /usr/lib/python3/
Byte-compile all enaml files for all installed Python version greater then 3.9.
=head1 AUTHOR
Alexander Sulfrian, 2025
|