Debian Codegraph @

debian/manpage/python-build.1

raw
1 .TH PYTHON-BUILD 1 "February 2025" "python-build manual" "User Commands"
2 .SH NAME
3 \fBpython-build\fR \- Build and install a Python version using pyenv
4
5 .SH SYNOPSIS
6 \fBpython-build\fR [\fBoptions\fR] <\fBdefinition\fR> <\fBprefix\fR>
7
8 .SH DESCRIPTION
9 The \fBpython-build\fR command builds and installs a specified version of Python using
10 the \fBpyenv\fR tool. It provides a flexible and easy way to install different Python
11 versions in the specified \fBprefix\fR directory.
12
13 .SH OPTIONS
14 .TP
15 \fB-k\fR, \fB--keep\fR
16 Do not remove source tree after installation.
17 .TP
18 \fB-p\fR, \fB--patch\fR
19 Apply a patch from stdin before building.
20 .TP
21 \fB-v\fR, \fB--verbose\fR
22 Verbose mode: print compilation status to stdout.
23 .TP
24 \fB-4\fR, \fB--ipv4\fR
25 Resolve names to IPv4 addresses only.
26 .TP
27 \fB-6\fR, \fB--ipv6\fR
28 Resolve names to IPv6 addresses only.
29 .TP
30 \fB--definitions\fR
31 List all built-in definitions.
32 .TP
33 \fB--version\fR
34 Show version of python-build.
35 .TP
36 \fB-g\fR, \fB--debug\fR
37 Build a debug version.
38
39 .SH EXAMPLES
40 To install a specific version of Python:
41
42 .EX
43 \fB$ python-build 3.8.5 /usr/local\fR
44 .EE
45
46 To install a Python version with verbose output:
47
48 .EX
49 \fB$ python-build --verbose 3.9.0 /usr/local\fR
50 .EE
51
52 To force the installation of a Python version:
53
54 .EX
55 \fB$ python-build --force 3.7.9 /usr/local\fR
56 .EE
57
58 .SH SEE ALSO
59 .MR pyenv 1 ,
60 .MR pyenv-install 1
61
62 .SH AUTHORS
63 Written by Yamashita, Yuu <[email protected]>, Sam Stephenson <[email protected]>.
64
65 This manual page was written by Josenison F. da Silva <[email protected]>
66 for the Debian project (but may be used by others).