Changeset 104ff4e for general/prog/docutils.xml
- Timestamp:
- 01/04/2023 06:05:12 PM (16 months ago)
- Branches:
- qt5new
- Children:
- c0ef2f9
- Parents:
- 1daaab6d (diff), 811d39b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/docutils.xml
r1daaab6d r104ff4e 7 7 <!ENTITY docutils-download-http "https://downloads.sourceforge.net/docutils/docutils-&docutils-version;.tar.gz"> 8 8 <!ENTITY docutils-download-ftp " "> 9 <!ENTITY docutils-md5sum " ca5827e2432fd58f4c8d74a6591135de">10 <!ENTITY docutils-size " 1.9MB">9 <!ENTITY docutils-md5sum "0afa992a6e93db892107c3f087d0d9df"> 10 <!ENTITY docutils-size "2.0 MB"> 11 11 <!ENTITY docutils-buildsize "12 MB"> 12 12 <!ENTITY docutils-time "less than 0.1 SBU"> … … 31 31 </para> 32 32 33 &lfs11 0a_checked;33 &lfs112_checked; 34 34 35 35 <bridgehead renderas="sect4">Package Information</bridgehead> … … 91 91 </para> 92 92 93 <screen><userinput>p ython3 setup.py build</userinput></screen>93 <screen><userinput>pip3 wheel -w dist --no-build-isolation --no-deps $PWD</userinput></screen> 94 94 95 95 <para> 96 96 To install the <application>Python</application> applications 97 run the following as the 98 <systemitem class="username">root</systemitem> user: 97 run the following as the &root; user: 99 98 </para> 100 99 101 <screen role="root"><userinput>p ython3 setup.py install --optimize=1&&100 <screen role="root"><userinput>pip3 install --no-index --find-links dist --no-cache-dir --no-user docutils && 102 101 103 102 for f in /usr/bin/rst*.py; do … … 105 104 done</userinput></screen> 106 105 106 <!-- FHS 3.0 section 4.4.2: 107 "There must be no subdirectories in /usr/bin." 108 But pip maintainers closed this as WONTFIX: 109 https://github.com/pypa/pip/issues/6906 --> 110 <para> 111 To reduce the time needed for loading Python scripts, 112 <command>pip3 install</command> will compile the scripts with 113 extension <filename class='extension'>.py</filename> into byte code 114 and save the result into 115 <filename class='extension'>.pyc</filename> files in the directory 116 <filename class='directory'>__pycache__</filename>. 117 But this package installs <filename class='extension'>.py</filename> 118 scripts into <filename class='directory'>/usr/bin</filename>. 119 So the byte code files for them will be installed into 120 <filename class='directory'>/usr/bin/__pycache__</filename>, which 121 is not allowed by FHS. Still as the &root; user, remove this 122 directory: 123 </para> 124 125 <screen role="root"><userinput>rm -rfv /usr/bin/__pycache__</userinput></screen> 107 126 </sect3> 127 128 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 129 href="../../xincludes/pip3-cmd-explain.xml"/> 108 130 109 131 <sect3 role="content"> … … 125 147 </seg> 126 148 <seg> 127 /usr/lib/python&python3-majorver;/site-packages/docutils 149 /usr/lib/python&python3-majorver;/site-packages/docutils{,-&docutils-version;.dist-info} 128 150 </seg> 129 151 </seglistitem>
Note:
See TracChangeset
for help on using the changeset viewer.