Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/distutils docs #2657

Merged
merged 403 commits into from Apr 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
403 commits
Select commit Hold shift + click to select a range
c9a96a1
#7973: Fix distutils options spelling.
birkenfeld Aug 2, 2010
2f483dd
Merged revisions 83536,83546-83548,83550,83554-83555,83558,83563,8356…
birkenfeld Aug 2, 2010
ed9c8fb
Merged revisions 83593 via svnmerge from
birkenfeld Aug 2, 2010
39f890e
Use a marker in generated MANIFEST files, don't touch files without i…
merwok Aug 14, 2010
fbfa411
Merged revisions 83993 via svnmerge from
merwok Aug 14, 2010
3c46db2
Fix version{added,changed} and spacing in NEWS
merwok Aug 14, 2010
5d9dbc9
Merged revisions 83993 via svnmerge from
merwok Aug 14, 2010
9e1e39b
Manually merge r83995: Fix version{added,changed} and spacing in NEWS
merwok Aug 14, 2010
09abd84
Fix typo
merwok Aug 14, 2010
74644b4
Merged revisions 84050 via svnmerge from
merwok Aug 14, 2010
0e4d801
Merged revisions 84050 via svnmerge from
merwok Aug 14, 2010
10cb2e2
Fix bad merge
merwok Aug 15, 2010
2331bf9
Consistency check for versionadded/changed directives.
birkenfeld Aug 17, 2010
a2b83eb
#9911: doc copyedits.
birkenfeld Sep 21, 2010
a3c1f8f
#9934. Correct a typo that was already fixed on py3k.
briancurtin Sep 25, 2010
f109561
Merged revisions 77236,77383,77399,77857,78238,78861-78862,78958 via …
birkenfeld Oct 6, 2010
de2bfbd
Merged revisions 82629,82632,82724,82757-82758,82760-82763,82798-8279…
birkenfeld Oct 6, 2010
f078ab0
Merged revisions 82805-82806,83523-83527,83536,83538,83542,83546-8354…
birkenfeld Oct 6, 2010
b20a0d1
Merged revisions 84142 via svnmerge from
birkenfeld Oct 6, 2010
5e92a9a
Merged revisions 84945 via svnmerge from
birkenfeld Oct 6, 2010
a08d7b1
Merged revisions 84945 via svnmerge from
birkenfeld Oct 6, 2010
e0da8b0
Migrate to Sphinx 1.0 C language constructs.
birkenfeld Oct 6, 2010
8e2e84d
Fix errors found by "make suspicious".
birkenfeld Oct 6, 2010
d3f2167
Merged revisions 85274 via svnmerge from
birkenfeld Oct 6, 2010
af05960
Fix sphinx role markups.
orsenthil Oct 15, 2010
5f1300d
Fix wrong name in docstring and doc (#10693). Original patch by Eli …
merwok Dec 15, 2010
4c1ab89
Merged revisions 87277 via svnmerge from
merwok Dec 15, 2010
42a2856
Merged revisions 87277 via svnmerge from
merwok Dec 15, 2010
6e1e6d6
Add missing read() in distutils doc.
merwok Feb 25, 2011
6600659
Merged revisions 88613 via svnmerge from
merwok Feb 25, 2011
f56d8ab
Merged revisions 88613 via svnmerge from
merwok Feb 25, 2011
a0b2d67
Merged revisions 88613 via svnmerge from
merwok Feb 25, 2011
22d3b0e
Dummy-merge 2.6 branch into 2.7 branch.
birkenfeld Mar 5, 2011
5018dbc
Dummy-merge 3.1 branch into 3.2 branch.
birkenfeld Mar 5, 2011
deacc91
Dummy-merge 3.2 branch into default branch.
birkenfeld Mar 5, 2011
710e7b1
#11843: remove duplicate line from table in distutil doc.
ezio-melotti Apr 15, 2011
7efd31f
#11843: remove duplicate line from table in distutil doc.
ezio-melotti Apr 15, 2011
8889f06
#11843: Merge with 3.1.
Apr 15, 2011
3c53874
#11843: Merge with 3.2.
ezio-melotti Apr 15, 2011
2a6a811
Fix weird executable name
merwok Apr 22, 2011
32c791f
Merge 3.1
merwok Apr 24, 2011
e3c3a80
Merge 3.2
merwok Apr 24, 2011
6d1b398
Stop trying to use _xmlplus in the xml module. Closes #11164.
loewis May 9, 2011
4cd8b86
merge 11164
loewis May 9, 2011
b9342e2
merge 11164
loewis May 9, 2011
f56f366
Backport doc improvements for distutils.cmd.Command (#9223).
merwok May 28, 2011
3f3344d
Minor touch-ups in distutils.cmd.Command doc
merwok May 28, 2011
d1e86e1
Re-add missing doc stub for the distutils check command
merwok May 28, 2011
92cbe4b
Merge doc touch-ups and fixes for #9831 and #9223 from 3.1
merwok May 28, 2011
46fe9bd
Re-add missing doc stub for the distutils check command
merwok May 28, 2011
43183ca
Merge touch-ups and fixes for #9831 (+port fix to packaging) and #922…
merwok May 28, 2011
bc1e827
Branch merge
merwok May 29, 2011
a090aad
Merge 3.2
merwok May 29, 2011
1147a55
Fix markup: arguments in a class directive are __init__ arguments, no…
merwok May 31, 2011
4274c39
Fix markup: arguments in a class directive are __init__ arguments, no…
merwok May 31, 2011
c0f78eb
Merge 3.2
merwok Jun 1, 2011
0bd45ca
Add documentation for the packaging module.
merwok Jun 1, 2011
82e62fd
Packaging doc: Add missing index file, improve main page description.
merwok Jun 2, 2011
0e80c6a
Add examples that work on Windows to distutils docs (#1626300)
merwok Jun 7, 2011
d35dc00
Add examples that work on Windows to distutils docs (#1626300)
merwok Jun 7, 2011
85d3b07
Merge doc fixes from 3.2
merwok Jun 9, 2011
d37f3f9
Remove duplicate "numbered" options for toctrees.
birkenfeld Jul 15, 2011
94a05c3
Better English.
bitdancer Jul 18, 2011
beee648
Merge English fix.
bitdancer Jul 18, 2011
767cc28
Better English.
bitdancer Jul 18, 2011
5f64303
Turn raw URI into real link
merwok Jul 28, 2011
de09587
Turn raw URI into real link
merwok Jul 28, 2011
63ed5ce
Merge from 3.2 (#10318, #12255, #12043, #12417 and other fixes)
merwok Jul 29, 2011
ace431e
Fix regression with distutils MANIFEST handing (#11104, #8688).
merwok Jul 31, 2011
ad7d9f5
Fix regression with distutils MANIFEST handing (#11104, #8688).
merwok Jul 31, 2011
b45cc3a
Merge fixes for #9860, #11104/#8688 and #12331 from 3.2
merwok Jul 31, 2011
cfe933a
Merge doc changes from 3.2 (#8617, #10745).
merwok Aug 6, 2011
9a88371
Remove obsolete term + indicate how to find the program (#1626300).
merwok Aug 19, 2011
b67f02c
Merge 3.2
merwok Aug 19, 2011
0721964
Fix typo in command name
merwok Aug 19, 2011
293f269
Remove obsolete term + indicate how to find the program (#1626300).
merwok Aug 19, 2011
2571448
Fix typo in command name
merwok Aug 19, 2011
b4181ce
Merge fixes for #12256 and typos from 3.2
merwok Aug 19, 2011
507f7dc
Fix type information in distutils API reference (#9302).
merwok Aug 25, 2011
5fae7cd
Document the "optional" argument of distutils’ Extension class
merwok Aug 25, 2011
b31194b
Document the "optional" argument of distutils’ Extension class
merwok Aug 25, 2011
bdd8fb7
Merge from 3.2 (#9302 fix and other changes)
merwok Aug 25, 2011
c0e0935
Synchronize packaging docs with distutils’ (includes fix for #9302)
merwok Aug 25, 2011
fb19b67
Fix type information in distutils API reference (#9302).
merwok Aug 26, 2011
9d4440f
Document the "optional" argument of distutils’ Extension class
merwok Aug 25, 2011
5433b81
Merge with release clone.
birkenfeld Sep 4, 2011
b734ac1
Merge with 3.2.
birkenfeld Sep 4, 2011
031fcc9
Fix distutils byte-compilation to comply with PEP 3147 (#11254).
merwok Oct 7, 2011
00e06a3
Merge fixes for #10526, #10359, #11254, #9100 and the bug without number
merwok Oct 8, 2011
4aae50e
Replace a mention of EnvironmentError in the distutils docs.
pitrou Oct 12, 2011
242b2bd
Remove duplication.
ezio-melotti Oct 19, 2011
d6f3f00
Remove duplication.
ezio-melotti Oct 19, 2011
5f95877
Merge with 3.2.
ezio-melotti Oct 19, 2011
d3e8c27
update to new C roles and directives
sandrotosi Jan 14, 2012
0fc0953
Hide or remove user-visible XXX notes from distutils doc (#13716).
merwok Jan 15, 2012
cd43501
Merge edits from 3.2 (#13716, #1040439, #2945, #13770, #6715)
merwok Feb 5, 2012
b15d21c
distutils 2.7’s Extension does not support optional (#13865).
merwok Feb 10, 2012
91f14ee
Hide or remove user-visible XXX notes from distutils doc (#13716).
merwok Feb 26, 2012
7350073
Remove packaging from the standard library.
merwok Jun 24, 2012
7cd414c
Move distutils install doc back into place.
merwok Jun 24, 2012
48d6907
Adapt mentions of future changes in doc
merwok Jul 2, 2012
0c3f264
Ignore .nfs* files in distutils (#7719).
merwok Jul 3, 2012
95d02d4
Issue #15321: update PyPI upload doc to say --no-raw passed to rst2ht…
eliben Jul 24, 2012
f72e718
Issue #15231: rephrase the last paragraph slightly
eliben Jul 31, 2012
2e857c4
Issue #15321: update PyPI upload doc to say --no-raw passed to rst2ht…
eliben Aug 1, 2012
5f644fd
Issue #15231: update PyPI upload doc to say --no-raw passed to rst2ht…
eliben Aug 2, 2012
e024e37
Issue #15538: Fix compilation of the getnameinfo() / getaddrinfo() em…
pitrou Aug 2, 2012
8806d71
Graft a89d654adaa2 from 3.2 branch. Fixes #15620.
birkenfeld Aug 11, 2012
f6a6d6c
Remove unneeded "Release" and "Date" markers from doc index pages.
cjerdonek Oct 28, 2012
1d13b77
Merge from 3.2: remove unneeded "Release" and "Date" markers from ind…
cjerdonek Oct 28, 2012
20a1ede
Backport from 3.2: remove "Release" and "Date" markers from index pages.
cjerdonek Oct 28, 2012
4494dd6
Update the description of which package versions PyPI displays (issue…
cjerdonek Nov 14, 2012
a23959f
Merge from 3.2: update the PyPI docs regarding listing versions (issu…
cjerdonek Nov 14, 2012
e2670a2
Backport from 3.2: update PyPI docs regarding listing versions (issue…
cjerdonek Nov 14, 2012
d596ba9
Add versionchanged note for a56cebff113a
merwok Dec 8, 2012
2837ed9
Ignore .nfs* files in distutils (#7719).
merwok Dec 8, 2012
6d73198
Merge fixes for #13614, #13512 and #7719 from 3.2
merwok Dec 9, 2012
fc7b293
Forward port new test for SSLSocket.connect_ex()
pitrou Dec 28, 2012
673d1c2
Forward port new test for SSLSocket.connect_ex()
pitrou Dec 28, 2012
bcc4dda
Issue #16874: fix formatting of setup.py upload options in documentat…
cjerdonek Jan 11, 2013
89f1afe
Issue #16874 (forward-port from 2.7): fix some documentation formatting.
cjerdonek Jan 11, 2013
960a68b
Issue #16874 (merge from 3.2): fix some documentation formatting.
cjerdonek Jan 11, 2013
8de498c
Issue #16403: Document how distutils uses the maintainer field in PKG…
akheron Feb 23, 2013
d3e2f8a
Issue #16403: Document how distutils uses the maintainer field in PKG…
akheron Feb 23, 2013
6c2dc47
Issue #16403: Document how distutils uses the maintainer field in PKG…
akheron Feb 23, 2013
bd5c16c
Issue #16406: combine the doc pages for uploading and registering to …
cjerdonek Feb 27, 2013
2f8c78e
Issue #16406: Combine the doc pages for uploading and registering to …
cjerdonek Feb 27, 2013
a0001e5
Issue #16406: Combine the doc pages for uploading and registering to …
cjerdonek Feb 27, 2013
ef5932b
Closes #4159: add LaTeX tabular column specifications to tables that …
birkenfeld Mar 28, 2013
2017d94
Backport rev. 3ae74b361f53 to 2.7 branch.
birkenfeld Mar 28, 2013
9da9655
#17614: IDLE no longer raises exception when quickly closing a file.
serwy Apr 3, 2013
4a7db29
Fix missing period.
birkenfeld Oct 6, 2013
7bb579e
#19196: Improved cross-references in distutils documentation.
serhiy-storchaka Oct 9, 2013
21c65d6
Issue 19544 and Issue #7457: Restore the read_pkg_file method to dist…
jaraco Nov 10, 2013
bbbfa97
Issue #19544 and Issue #6516: Restore support for --user and --group …
akuchling Nov 15, 2013
cf70f0f
Issue #19544 and Issue #1180: Restore global option to ignore ~/.pyd…
akuchling Nov 10, 2013
f71ceb3
Issue #19407: add Python Packaging User Guide notes
ncoghlan Dec 10, 2013
caaafe4
Issue #19407: merge PPUG notes from 3.3
ncoghlan Dec 10, 2013
d28fb46
#16135: remove mentions of OS/2 from the documentation
akuchling Mar 1, 2014
12e44f7
Avoid “error: None” messages from distutils (#4931).
merwok Mar 12, 2014
7832ff3
Merge 3.3 (#4931)
merwok Mar 12, 2014
4c07de9
Make distutils error messages more helpful (#11599).
merwok Mar 13, 2014
835633e
Merge 3.3 (#11599)
merwok Mar 13, 2014
bdd6f5b
Close #19407: New installation & distribution guides
ncoghlan Mar 13, 2014
5328876
Clarify distutils’ clean command (ref #6142)
merwok Mar 13, 2014
7441dd1
Clarify distutils’ clean command (ref #6142)
merwok Mar 13, 2014
01e5e58
Merge in all documentation changes since branching 3.4.0rc1.
larryhastings Mar 16, 2014
7709012
Merged default into 3.4 branch. 3.4 branch is now effectively 3.4.1rc1.
larryhastings Mar 17, 2014
76a17a8
Add missing parenthesis. Found by cocoatomo on docs@.
zware Mar 20, 2014
3c18436
Remove superfluous open parenthesis. Noticed by cocoatomo on docs@.
zware Mar 24, 2014
36826f0
Fix Issue #21528 - Fix documentation typos
dstufft May 20, 2014
ba6f2f1
Issue #21726: Remove unnecessary and contextually wrong line.
terryjreedy Jun 13, 2014
c3e06d9
Merge with 3.4
terryjreedy Jun 13, 2014
4e149cf
Doc: remove invalid uses of ":option:" which will emit warnings in Sp…
birkenfeld Sep 20, 2014
35adf08
merge with 3.4
birkenfeld Sep 20, 2014
26f4ac4
#17325: Improve distutils PyPI documentation.
bitdancer Oct 12, 2014
d9210d5
Merge: #17325: Improve distutils PyPI documentation.
bitdancer Oct 12, 2014
7499bd1
Use https:// URLs when referring to python.org hosts.
birkenfeld Oct 29, 2014
55081f0
Merge with 3.4
birkenfeld Oct 29, 2014
137cd90
Fixing broken links in doc, part 1: faq/
birkenfeld Oct 29, 2014
0189bfe
merge with 3.4
birkenfeld Oct 29, 2014
8854bbd
Fixing broken links in doc, part 4: some more breaks and redirects
birkenfeld Oct 29, 2014
003764f
merge with 3.4
birkenfeld Oct 29, 2014
c2be7de
Doc: fix default role usage (except in unittest mock docs)
birkenfeld Oct 30, 2014
cb4aa18
Doc: fix default role usage (except in unittest mock docs)
birkenfeld Oct 30, 2014
66f7fee
merge with 3.4
birkenfeld Oct 30, 2014
0835a8e
distutils example: fix invalid rst in description string
birkenfeld Oct 30, 2014
017c6a7
merge with 3.4
birkenfeld Oct 30, 2014
4878d37
fix instances of consecutive articles (closes #23221)
benjaminp Jan 13, 2015
591e2d4
merge 3.4 (#23221)
benjaminp Jan 13, 2015
ac5e667
Issue #23682: Delete Python 2.2 mention from distutils documentation.
berkerpeksag Mar 17, 2015
34099c4
Issue #23682: Delete Python 2.2 mention from distutils documentation.
berkerpeksag Mar 17, 2015
ab8064d
Issue #23731: Implement PEP 488.
brettcannon Apr 13, 2015
6474391
Issue #16314: Added support for the LZMA compression in distutils.
serhiy-storchaka May 16, 2015
762d615
Back porting changeset db302b88fdb6 to 3.4 branch, which fixed multip…
orsenthil Jun 15, 2015
0f722ad
null merge with 3.4
orsenthil Jun 15, 2015
9fb5aaf
null merge 3.4 to 3.5 (9a0c5ffe7420 merged 3.4 to default, bypassing …
ned-deily Jun 15, 2015
52dd2c2
null merge 3.5 to default (9a0c5ffe7420 merged 3.4 to default, bypass…
ned-deily Jun 15, 2015
fd199a1
Fix versionchanged directives
zware Jul 7, 2015
3ce64f8
Merge 3.5
zware Jul 7, 2015
6a02b76
fix name of argument in docstring and the docs (closes #25076)
benjaminp Sep 13, 2015
44e85ae
merge 3.4
benjaminp Sep 13, 2015
bd652df
merge 3.5 (#25076)
benjaminp Sep 13, 2015
ce40227
Issue #25161: Add full stops in documentation; patch by Takase Arihiro
vadmium Oct 10, 2015
1277abe
Issue #25161: Merge full stops from 3.4 into 3.5
vadmium Oct 10, 2015
128a824
Issue #25161: Merge full stops from 3.5
vadmium Oct 10, 2015
1d59f2e
Issue #25523: Further a-to-an corrections.
serhiy-storchaka Nov 2, 2015
a42c9b8
Issue #25523: Merge a-to-an corrections from 3.4.
serhiy-storchaka Nov 2, 2015
b9ed37a
Issue #25523: Merge a-to-an corrections from 3.5.
serhiy-storchaka Nov 2, 2015
d478d81
link to modern PUG url
benjaminp Nov 4, 2015
754dc85
merge 3.4
benjaminp Nov 4, 2015
f1efeea
merge 3.5
benjaminp Nov 4, 2015
fe0cbda
Closes #26435: fix syntax in directives. Thanks to Jakub Stasiak.
birkenfeld Feb 25, 2016
de746a8
merge with 3.5
birkenfeld Feb 25, 2016
d8941f4
Closes #25910: fix dead and permanently redirected links in the docs.…
birkenfeld Feb 26, 2016
c9a798e
merge with 3.5
birkenfeld Feb 26, 2016
7f1f468
Issue #26638: Fix links to some CLI options and section headings
vadmium Apr 16, 2016
5ff800f
Issue #26638: Merge link fixes from 3.5
vadmium Apr 16, 2016
a5df731
Issue #26778: Fixed "a/an/and" typos in code comment and documentation.
serhiy-storchaka Apr 17, 2016
82aa496
Issue #26778: Fixed "a/an/and" typos in code comment, documentation a…
serhiy-storchaka Apr 17, 2016
bc2bc7a
Issue #23921: Standardized documentation whitespace formatting.
serhiy-storchaka May 10, 2016
dca3f4d
Issue #23921: Standardized documentation whitespace formatting.
serhiy-storchaka May 10, 2016
da6d254
Issue #26014: Update 3.x packaging documentation:
ned-deily Jun 6, 2016
cc725e5
Issue #26462: Doc: reduce literal_block warnings, fix syntax highligh…
vadmium Jul 26, 2016
753d446
Issue #26638: Mask undefined CLI options to defeat new Sphinx warnings
vadmium Oct 30, 2016
2436e5f
Fix spacing after C++ in documentation
vadmium Nov 5, 2016
0ea6937
Issue #29069: Update the default URL of PyPI server
berkerpeksag Dec 27, 2016
c2250ca
distutils docs: Fix a typo (GH-470)
Mariatta Mar 5, 2017
e9f6164
bpo-11913: Add README.rst to the distutils standard READMEs list (#563)
kirbyfan64 Apr 14, 2017
5284514
remove IRIX support (closes bpo-31341) (#3310)
benjaminp Sep 4, 2017
ca33b76
Remove all mention of Windows IA-64 support (GH-3389)
zware Sep 6, 2017
b129d05
bpo-31569: correct PCBuild/ case to PCbuild/ in build scripts and doc…
gronke Sep 25, 2017
2ed774f
bpo-19610: setup() now raises TypeError for invalid types (GH-4519)
berkerpeksag Nov 23, 2017
48df780
bpo-19610: Warn if distutils is provided something other than a list …
nascheme Dec 5, 2017
b62b9d8
bpo-25910: Link redirections in docs (#1933)
CuriousLearner Jan 20, 2018
0319207
Improve highlighting of some code blocks. (GH-6401)
serhiy-storchaka Apr 8, 2018
6432982
bpo-33297: Mention Pillow to work with more image formats. (#6505)
andresdelfino Apr 21, 2018
bb15219
bpo-33503: Fix the broken pypi link in the source and the documentati…
matrixise May 15, 2018
9c2a778
bpo-33892: Doc: Use gender neutral words (GH-7770)
andresdelfino Jun 18, 2018
d4bb873
bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH…
matrixise Oct 12, 2018
c6e0973
bpo-35027, distutils doc: Correct note on setup.py change in Python 3…
TilmanK Oct 24, 2018
8dcc595
bpo-35042: Use the :pep: role where a PEP is specified (#10036)
matrixise Oct 26, 2018
bf2fc82
bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10…
serhiy-storchaka Oct 31, 2018
90912c9
bpo-35110: Fix yet few spaces before dashes. (GH-10255)
serhiy-storchaka Oct 31, 2018
96864af
Add missing period in distutils.dep_util.newer_group doc (GH-11003)
andresdelfino Dec 6, 2018
f35f5d8
bpo-25592: Improve documentation of distutils data_files (GH-9767)
jdemeyer Jan 30, 2019
601692e
bpo-21536: C extensions are no longer linked to libpython (GH-12946)
vstinner Apr 25, 2019
77d2f47
bpo-21536: On Android, C extensions are linked to libpython (GH-12989)
xdegaye Apr 29, 2019
8ace7cd
Doc: Fix missing bracket (GH-13163)
azalea May 8, 2019
9ec0041
bpo-33071: remove outdated PyPI docs (GH-13087)
kojoidrissa May 10, 2019
6e93c36
bpo-36797: Prune more legacy distutils documentation (GH-13092)
ncoghlan May 14, 2019
a2dc287
bpo-36797: Reduce levels of indirection in outdated distutils docs (#…
ncoghlan May 23, 2019
0d3ecff
bpo-21536: On Cygwin, C extensions must be linked with libpython (GH-…
embray May 24, 2019
ceeaa6a
bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-…
hroncok Jul 1, 2019
4686db0
bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)
vstinner Jul 5, 2019
7f891f2
bpo-36797: Fix a dead link in Doc/distutils/apiref (GH-15700)
hroncok Sep 5, 2019
a9a584f
bpo-38103: fix conflicting labels in the docs. (GH-15906)
ezio-melotti Sep 11, 2019
a831d3a
bpo-21063: Improve module synopsis for distutils (GH-17363)
GeniusLearner Nov 25, 2019
fb4296c
bpo-38021: Modify AIX platform_tag so it covers PEP 425 needs (GH-17303)
aixtools Dec 15, 2019
9c8d213
bpo-38914 Do not require email field in setup.py. (GH-17388)
jugmac00 Dec 23, 2019
261f346
bpo-39586: Deprecate distutils bdist_msi command (GH-18415)
hugovk Feb 10, 2020
1bfb4ba
Move docs to docs/distutils
jaraco Sep 23, 2020
68f5b81
Merge ../python-distutils-docs into master
jaraco Oct 18, 2020
466219b
Merge https://github.com/pypa/distutils into feature/distutils-docs
jaraco Oct 18, 2020
109bde8
Move distutils docs into 'deprecated' section and link them from that…
jaraco Oct 18, 2020
68b6847
Enable intersphinx to link against CPython docs
webknjaz Oct 18, 2020
8848933
Correct broken refs in distutils docs
webknjaz Oct 18, 2020
18b7a3e
Allow some refs to undocumented/undeclared objects
webknjaz Oct 18, 2020
8b49463
Merge pull request #2438 from webknjaz/bugfixes/distutils-sphinx-refs
jaraco Oct 18, 2020
4d7a11e
Merge branch 'main' into feature/distutils-docs
jaraco Apr 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 44 additions & 0 deletions docs/conf.py
Expand Up @@ -99,3 +99,47 @@

# Add support for inline tabs
extensions += ['sphinx_inline_tabs']

# Support for distutils

# Ref: https://stackoverflow.com/a/30624034/595220
nitpick_ignore = [
('c:func', 'SHGetSpecialFolderPath'), # ref to MS docs
('envvar', 'DISTUTILS_DEBUG'), # undocumented
('envvar', 'HOME'), # undocumented
('envvar', 'PLAT'), # undocumented
('py:attr', 'CCompiler.language_map'), # undocumented
('py:attr', 'CCompiler.language_order'), # undocumented
('py:class', 'distutils.dist.Distribution'), # undocumented
('py:class', 'distutils.extension.Extension'), # undocumented
('py:class', 'BorlandCCompiler'), # undocumented
('py:class', 'CCompiler'), # undocumented
('py:class', 'CygwinCCompiler'), # undocumented
('py:class', 'distutils.dist.DistributionMetadata'), # undocumented
('py:class', 'FileList'), # undocumented
('py:class', 'IShellLink'), # ref to MS docs
('py:class', 'MSVCCompiler'), # undocumented
('py:class', 'OptionDummy'), # undocumented
('py:class', 'UnixCCompiler'), # undocumented
('py:exc', 'CompileError'), # undocumented
('py:exc', 'DistutilsExecError'), # undocumented
('py:exc', 'DistutilsFileError'), # undocumented
('py:exc', 'LibError'), # undocumented
('py:exc', 'LinkError'), # undocumented
('py:exc', 'PreprocessError'), # undocumented
('py:func', 'distutils.CCompiler.new_compiler'), # undocumented
# undocumented:
('py:func', 'distutils.dist.DistributionMetadata.read_pkg_file'),
('py:func', 'distutils.file_util._copy_file_contents'), # undocumented
('py:func', 'distutils.log.debug'), # undocumented
('py:func', 'distutils.spawn.find_executable'), # undocumented
('py:func', 'distutils.spawn.spawn'), # undocumented
# TODO: check https://docutils.rtfd.io in the future
('py:mod', 'docutils'), # there's no Sphinx site documenting this
]

# Allow linking objects on other Sphinx sites seamlessly:
intersphinx_mapping = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaraco this overrides the intersphinx_mapping declaration above, it needs a proper merge

'python': ('https://docs.python.org/3', None),
'python2': ('https://docs.python.org/2', None),
}
5 changes: 5 additions & 0 deletions docs/deprecated/distutils/_setuptools_disclaimer.rst
@@ -0,0 +1,5 @@
.. note::

This document is being retained solely until the ``setuptools`` documentation
at https://setuptools.readthedocs.io/en/latest/setuptools.html
independently covers all of the relevant information currently included here.
2,071 changes: 2,071 additions & 0 deletions docs/deprecated/distutils/apiref.rst

Large diffs are not rendered by default.

479 changes: 479 additions & 0 deletions docs/deprecated/distutils/builtdist.rst

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions docs/deprecated/distutils/commandref.rst
@@ -0,0 +1,106 @@
.. _reference:

*****************
Command Reference
*****************

.. include:: ./_setuptools_disclaimer.rst

.. % \section{Building modules: the \protect\command{build} command family}
.. % \label{build-cmds}
.. % \subsubsection{\protect\command{build}}
.. % \label{build-cmd}
.. % \subsubsection{\protect\command{build\_py}}
.. % \label{build-py-cmd}
.. % \subsubsection{\protect\command{build\_ext}}
.. % \label{build-ext-cmd}
.. % \subsubsection{\protect\command{build\_clib}}
.. % \label{build-clib-cmd}


.. _install-cmd:

Installing modules: the :command:`install` command family
=========================================================

The install command ensures that the build commands have been run and then runs
the subcommands :command:`install_lib`, :command:`install_data` and
:command:`install_scripts`.

.. % \subsubsection{\protect\command{install\_lib}}
.. % \label{install-lib-cmd}


.. _install-data-cmd:

:command:`install_data`
-----------------------

This command installs all data files provided with the distribution.


.. _install-scripts-cmd:

:command:`install_scripts`
--------------------------

This command installs all (Python) scripts in the distribution.

.. % \subsection{Cleaning up: the \protect\command{clean} command}
.. % \label{clean-cmd}


.. _sdist-cmd:

Creating a source distribution: the :command:`sdist` command
============================================================

.. XXX fragment moved down from above: needs context!

The manifest template commands are:

+-------------------------------------------+-----------------------------------------------+
| Command | Description |
+===========================================+===============================================+
| :command:`include pat1 pat2 ...` | include all files matching any of the listed |
| | patterns |
+-------------------------------------------+-----------------------------------------------+
| :command:`exclude pat1 pat2 ...` | exclude all files matching any of the listed |
| | patterns |
+-------------------------------------------+-----------------------------------------------+
| :command:`recursive-include dir pat1 pat2 | include all files under *dir* matching any of |
| ...` | the listed patterns |
+-------------------------------------------+-----------------------------------------------+
| :command:`recursive-exclude dir pat1 pat2 | exclude all files under *dir* matching any of |
| ...` | the listed patterns |
+-------------------------------------------+-----------------------------------------------+
| :command:`global-include pat1 pat2 ...` | include all files anywhere in the source tree |
| | matching --- & any of the listed patterns |
+-------------------------------------------+-----------------------------------------------+
| :command:`global-exclude pat1 pat2 ...` | exclude all files anywhere in the source tree |
| | matching --- & any of the listed patterns |
+-------------------------------------------+-----------------------------------------------+
| :command:`prune dir` | exclude all files under *dir* |
+-------------------------------------------+-----------------------------------------------+
| :command:`graft dir` | include all files under *dir* |
+-------------------------------------------+-----------------------------------------------+

The patterns here are Unix-style "glob" patterns: ``*`` matches any sequence of
regular filename characters, ``?`` matches any single regular filename
character, and ``[range]`` matches any of the characters in *range* (e.g.,
``a-z``, ``a-zA-Z``, ``a-f0-9_.``). The definition of "regular filename
character" is platform-specific: on Unix it is anything except slash; on Windows
anything except backslash or colon.

.. XXX Windows support not there yet

.. % \section{Creating a built distribution: the
.. % \protect\command{bdist} command family}
.. % \label{bdist-cmds}

.. % \subsection{\protect\command{bdist}}
.. % \subsection{\protect\command{bdist\_dumb}}
.. % \subsection{\protect\command{bdist\_rpm}}
.. % \subsection{\protect\command{bdist\_wininst}}


144 changes: 144 additions & 0 deletions docs/deprecated/distutils/configfile.rst
@@ -0,0 +1,144 @@
.. _setup-config:

************************************
Writing the Setup Configuration File
************************************

.. include:: ./_setuptools_disclaimer.rst

Often, it's not possible to write down everything needed to build a distribution
*a priori*: you may need to get some information from the user, or from the
user's system, in order to proceed. As long as that information is fairly
simple---a list of directories to search for C header files or libraries, for
example---then providing a configuration file, :file:`setup.cfg`, for users to
edit is a cheap and easy way to solicit it. Configuration files also let you
provide default values for any command option, which the installer can then
override either on the command-line or by editing the config file.

The setup configuration file is a useful middle-ground between the setup
script---which, ideally, would be opaque to installers [#]_---and the command-line to
the setup script, which is outside of your control and entirely up to the
installer. In fact, :file:`setup.cfg` (and any other Distutils configuration
files present on the target system) are processed after the contents of the
setup script, but before the command-line. This has several useful
consequences:

.. % (If you have more advanced needs, such as determining which extensions
.. % to build based on what capabilities are present on the target system,
.. % then you need the Distutils ``auto-configuration'' facility. This
.. % started to appear in Distutils 0.9 but, as of this writing, isn't mature
.. % or stable enough yet for real-world use.)

* installers can override some of what you put in :file:`setup.py` by editing
:file:`setup.cfg`

* you can provide non-standard defaults for options that are not easily set in
:file:`setup.py`

* installers can override anything in :file:`setup.cfg` using the command-line
options to :file:`setup.py`

The basic syntax of the configuration file is simple:

.. code-block:: ini

[command]
option=value
...

where *command* is one of the Distutils commands (e.g. :command:`build_py`,
:command:`install`), and *option* is one of the options that command supports.
Any number of options can be supplied for each command, and any number of
command sections can be included in the file. Blank lines are ignored, as are
comments, which run from a ``'#'`` character until the end of the line. Long
option values can be split across multiple lines simply by indenting the
continuation lines.

You can find out the list of options supported by a particular command with the
universal :option:`!--help` option, e.g.

.. code-block:: shell-session

$ python setup.py --help build_ext
[...]
Options for 'build_ext' command:
--build-lib (-b) directory for compiled extension modules
--build-temp (-t) directory for temporary files (build by-products)
--inplace (-i) ignore build-lib and put compiled extensions into the
source directory alongside your pure Python modules
--include-dirs (-I) list of directories to search for header files
--define (-D) C preprocessor macros to define
--undef (-U) C preprocessor macros to undefine
--swig-opts list of SWIG command line options
[...]

Note that an option spelled :option:`!--foo-bar` on the command-line is spelled
``foo_bar`` in configuration files.

.. _distutils-build-ext-inplace:

For example, say you want your extensions to be built "in-place"---that is, you
have an extension ``pkg.ext``, and you want the compiled extension file
(:file:`ext.so` on Unix, say) to be put in the same source directory as your
pure Python modules ``pkg.mod1`` and ``pkg.mod2``. You can always use the
:option:`!--inplace` option on the command-line to ensure this:

.. code-block:: sh

python setup.py build_ext --inplace

But this requires that you always specify the :command:`build_ext` command
explicitly, and remember to provide :option:`!--inplace`. An easier way is to
"set and forget" this option, by encoding it in :file:`setup.cfg`, the
configuration file for this distribution:

.. code-block:: ini

[build_ext]
inplace=1

This will affect all builds of this module distribution, whether or not you
explicitly specify :command:`build_ext`. If you include :file:`setup.cfg` in
your source distribution, it will also affect end-user builds---which is
probably a bad idea for this option, since always building extensions in-place
would break installation of the module distribution. In certain peculiar cases,
though, modules are built right in their installation directory, so this is
conceivably a useful ability. (Distributing extensions that expect to be built
in their installation directory is almost always a bad idea, though.)

Another example: certain commands take a lot of options that don't change from
run to run; for example, :command:`bdist_rpm` needs to know everything required
to generate a "spec" file for creating an RPM distribution. Some of this
information comes from the setup script, and some is automatically generated by
the Distutils (such as the list of files installed). But some of it has to be
supplied as options to :command:`bdist_rpm`, which would be very tedious to do
on the command-line for every run. Hence, here is a snippet from the Distutils'
own :file:`setup.cfg`:

.. code-block:: ini

[bdist_rpm]
release = 1
packager = Greg Ward <gward@python.net>
doc_files = CHANGES.txt
README.txt
USAGE.txt
doc/
examples/

Note that the ``doc_files`` option is simply a whitespace-separated string
split across multiple lines for readability.


.. seealso::

:ref:`inst-config-syntax` in "Installing Python Modules"
More information on the configuration files is available in the manual for
system administrators.


.. rubric:: Footnotes

.. [#] This ideal probably won't be achieved until auto-configuration is fully
supported by the Distutils.