MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / bdist

Class bdist

tools/python-3.11.9-amd64/Lib/distutils/command/bdist.py:24–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24class bdist(Command):
25
26 description = "create a built (binary) distribution"
27
28 user_options = [('bdist-base=', 'b',
29 "temporary directory for creating built distributions"),
30 ('plat-name=', 'p',
31 "platform name to embed in generated filenames "
32 "(default: %s)" % get_platform()),
33 ('formats=', None,
34 "formats for distribution (comma-separated list)"),
35 ('dist-dir=', 'd',
36 "directory to put final built distributions in "
37 "[default: dist]"),
38 ('skip-build', None,
39 "skip rebuilding everything (for testing/debugging)"),
40 ('owner=', 'u',
41 "Owner name used when creating a tar file"
42 " [default: current user]"),
43 ('group=', 'g',
44 "Group name used when creating a tar file"
45 " [default: current group]"),
46 ]
47
48 boolean_options = ['skip-build']
49
50 help_options = [
51 ('help-formats', None,
52 "lists available distribution formats", show_formats),
53 ]
54
55 # The following commands do not take a format option from bdist
56 no_format_option = ('bdist_rpm',)
57
58 # This won't do in reality: will need to distinguish RPM-ish Linux,
59 # Debian-ish Linux, Solaris, FreeBSD, ..., Windows, Mac OS.
60 default_format = {'posix': 'gztar',
61 'nt': 'zip'}
62
63 # Establish the preferred order (for the --help-formats option).
64 format_commands = ['rpm', 'gztar', 'bztar', 'xztar', 'ztar', 'tar', 'zip']
65
66 # And the real information.
67 format_command = {'rpm': ('bdist_rpm', "RPM distribution"),
68 'gztar': ('bdist_dumb', "gzip'ed tar file"),
69 'bztar': ('bdist_dumb', "bzip2'ed tar file"),
70 'xztar': ('bdist_dumb', "xz'ed tar file"),
71 'ztar': ('bdist_dumb', "compressed tar file"),
72 'tar': ('bdist_dumb', "tar file"),
73 'zip': ('bdist_dumb', "ZIP file"),
74 }
75
76 def initialize_options(self):
77 self.bdist_base = None
78 self.plat_name = None
79 self.formats = None
80 self.dist_dir = None
81 self.skip_build = 0

Callers 2

test_formatsMethod · 0.90
test_skip_buildMethod · 0.90

Calls 1

get_platformFunction · 0.90

Tested by 2

test_formatsMethod · 0.72
test_skip_buildMethod · 0.72