source: general/prog/python-dependencies/pythonhosted.xml@ ab3ae35a

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since ab3ae35a was ab3ae35a, checked in by Ken Moffat <ken@…>, 19 months ago

python-modules: patch Requests to be able to use system certs.

  • Property mode set to 100644
File size: 7.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4<!ENTITY % general-entities SYSTEM "../../../general.ent">
5 %general-entities;
6
7 <!ENTITY pythonhosted-download-http "See Below">
8 <!ENTITY pythonhosted-download-ftp " ">
9 <!ENTITY pythonhosted-md5sum "See Below">
10 <!ENTITY pythonhosted-size "14 MB">
11 <!ENTITY pythonhosted-buildsize "2.2 MB">
12 <!ENTITY pythonhosted-time "TBD SBU)">
13]>
14
15<sect2 id="pythonhosted" xreflabel="pythonhosted files">
16 <!--<?dbhtml filename="pythonhosted.html"?>-->
17
18 <title>Building pythonhosted.org Files</title>
19
20 <indexterm zone="pythonhosted">
21 <primary sortas="a-pythonhosted">pythonhosted</primary>
22 </indexterm>
23
24 <sect3 role="package">
25 <title>Introduction to pythonhosted.org Files</title>
26
27 <para>
28 This section is for user convenience and is optional.
29 It can be used to fetch and install all the pythonhosted.org module
30 packages below in two convenient scripts.
31 </para>
32
33 &lfs112_checked;
34
35 <bridgehead renderas="sect4">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): &pythonhosted-download-http;
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&pythonhosted-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &pythonhosted-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &pythonhosted-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &pythonhosted-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &pythonhosted-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect4">Pythonhosted.org Dependencies</bridgehead>
70
71 <bridgehead renderas="sect5">Required</bridgehead>
72 <para role="required">
73 TBD
74 <!--<xref linkend="fontforge"/>,-->
75 <!-- does not seem to be needed as of 5.22.4 <xref linkend="GConf"/>, -->
76 </para>
77
78 <bridgehead renderas="sect5">Recommended</bridgehead>
79 <para role="recommended">
80 TBD
81 <!--<xref linkend="fftw"/>,-->
82 </para>
83
84 <bridgehead renderas="sect5">Optional</bridgehead>
85 <para role="optional">
86 TBD
87 <!--
88 <xref linkend="glu"/>,
89 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)-->
90 </para>
91 <!--
92 <para condition="html" role="usernotes">User Notes:
93 <ulink url="&blfs-wiki;/pythonhosted"/></para>
94 -->
95 </sect3>
96
97 <sect3>
98 <title>Downloading All Pythonhosted Module Files</title>
99
100 <para>
101 The easiest way to install the modules from the files.pythonhosted.org site
102 is to run a script to install them all at once.
103 </para>
104
105 <para>
106 The order of building files is important due to internal dependencies.
107 First, create the list of files in the proper order as follows:
108 </para>
109
110 <screen><userinput>cat &gt; pythonhosted-files.md5 &lt;&lt; "EOF"
111<literal>3591827fde96d1dd23970fb05410ed04 alabaster-0.7.12.tar.gz
1124332ddc7bbee0f344a03915b2ad59a54 snowballstemmer-2.2.0.tar.gz
113b1d2ed6592bbdf6002ef52b4ab8e2efe pytz-2022.4.tar.gz
114809ed21b4f643167d0f6f5e936bbfbdc Babel-2.10.3.tar.gz
1150487081b7ead8753fc46cf7c6d1e28e3 attrs-22.1.0.tar.gz
116a70f9fc85b6b8265c982eca6fe51381f charset-normalizer-2.1.1.tar.gz
1174a4791e97f3a8c9a1645064a35636ee6 flit_core-3.7.1.tar.gz
11813ea24e076212b6baae1135a116d1e0e idna-3.4.tar.gz
1195a40586a25c07e1a8f16f6267252c321 imagesize-1.4.1.tar.gz
120fadc2f3bf5872bf6310576a86c3566e0 pyparsing-3.0.9.tar.gz
121e713c1939f294fd729af4a7be40dd141 packaging-21.3.tar.gz
122d4341621d423a7ca6822e23d6d52bb9a tomli-2.0.1.tar.gz
1235cfcb56ea6fc4972c3600c0030f4d136 typing_extensions-4.4.0.tar.gz
1240df4e7fd923e4983cd65786efaa0e0d0 setuptools_scm-7.0.5.tar.gz
1250b7f3be87481211c183eae095bcea6f1 iniconfig-1.1.1.tar.gz
126daa6fddfb6cd364f3c82e52098911e4b pluggy-1.0.0.tar.gz
127#c4de3e192e5bb4b39deada36cc2f393a pytest-7.1.3.tar.gz
128bde7dcc1cb452a1e10206ef2f811ba88 py-1.11.0.tar.gz
129ba308b52b9092184cf4905bc59a88fc0 urllib3-1.26.12.tar.gz
130#796ea875cdae283529c03b9203d9c454 requests-2.28.1.tar.gz
1313f2de7681e12dde031acee0497c3cc2b sphinxcontrib-applehelp-1.0.2.tar.gz
13294069c5cdb5079c445f5477fa6107016 sphinxcontrib-devhelp-1.0.2.tar.gz
13370765b55395a3c20233631802902c840 sphinxcontrib-htmlhelp-2.0.0.tar.gz
134e45179f0a3608b6766862e0f34c23b62 sphinxcontrib-jsmath-1.0.1.tar.gz
13593216721f3e154cce12d1e9c3307b415 sphinxcontrib-qthelp-1.0.3.tar.gz
136d99d2edc7b26988dc5fa92163857bfbf sphinxcontrib-serializinghtml-1.1.5.tar.gz
137#a8444ced81cd594d60d4af002a0e0025 sphinx-5.2.2.tar.gz
138#fdfc7d2e102cb96eca0f6155dde7403e sphinx_rtd_theme-1.0.0.tar.gz</literal>
139EOF</userinput></screen>
140
141 <para>
142 Next, create a script to fetch the files:
143 </para>
144
145 <screen><userinput>cat &gt; get-pythonhosted-files.sh &lt;&lt; "EOF"
146<literal>#! /bin/bash
147
148PYTHONHOSTED=https://files.pythonhosted.org/packages/source
149
150mkdir -p pythonhosted
151cd pythonhosted
152
153for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}')
154do
155 # Don't try to get a package that is already present
156 [ -e $package ] &amp;&amp; continue
157 basename=$(echo $package|sed 's/-[[:digit:]].*$//')
158 basechar=$(echo $basename|cut -c 1)
159 url=$PYTHONHOSTED/$basechar/$basename/$package
160 wget $url
161done
162EOF</literal></userinput></screen>
163
164 <para>
165 Run the script and check the files:
166 </para>
167
168 <screen><userinput>bash get-pythonhosted-files.sh &amp;&amp;
169 md5sum -c ../pythonhosted-files.md5</userinput></screen>
170
171 </sect3>
172
173 <sect3 role="installation">
174 <title>Installation of Pythonhosted Modules</title>
175
176 <para>
177 Set up a script to install all of the packages:
178 </para>
179
180 <screen><userinput>cat &gt; install-pythonhosted-files.sh &lt;&lt; "EOF"
181<literal>#! /bin/bash
182
183cd pythonhosted
184
185for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}')
186do
187 name=$(echo $package|sed 's/-[[:digit:]].*$//')
188
189 # Don't try to install the package if it already installed
190 installed=$(pip3 show $name 2&gt; /dev/null | grep Version:)
191
192 unset version
193 if [ -n $installed ]; then
194 version=$(echo $installed | awk '{print $2}')
195 fi
196
197 if [ -n "$version" ]; then
198 if [ ! $(echo $package | grep -q $version) ]; then
199 echo $package is already installed
200 continue
201 fi
202 fi
203
204 # Now install the package
205 packagedir=${package%.tar.?z*}
206 rm -rf $packagedir
207 tar -xf $package
208 pushd $packagedir
209 pip3 wheel -w dist --no-build-isolation --no-deps $PWD
210 sudo pip3 install --no-index --find-links dist --no-cache-dir \
211 --no-user --upgrade $name
212 popd
213done</literal></userinput></screen>
214
215 <para>
216 Now run the script to install the files. If the script is run
217 multiple times, it will not try to reinstall the modules unless
218 the version in the .md5 file has been changed.
219 </para>
220
221 <screen><userinput>bash install-pythonhosted-files.sh</userinput></screen>
222
223 <para>Some of the packages have test procedures. See the individual
224 package sections below to run any desired tests.</para>
225
226 </sect3>
227
228 <sect3 role="content">
229 <title>Contents</title>
230
231 <para>
232 See the contents of the individual package sections below.
233 </para>
234
235 </sect3>
236
237</sect2>
Note: See TracBrowser for help on using the repository browser.