source: archive/pyhosted-inc.xsl@ 8ad99f0f

lazarus trunk
Last change on this file since 8ad99f0f was 572e945, checked in by Bruce Dubbs <bdubbs@…>, 16 months ago

Update to tigervnc-1.13.0.

  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[7c086d9]1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 version="1.0">
5 <xsl:variable name="part1"><![CDATA[<?xml version="1.0" encoding="ISO-8859-1"?>
6<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
7 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
8<!ENTITY % general-entities SYSTEM "../../../general.ent">
9 %general-entities;
10
11 <!ENTITY pythonhosted-download-http "See Below">
12 <!ENTITY pythonhosted-download-ftp " ">
13 <!ENTITY pythonhosted-md5sum "See Below">
14 <!ENTITY pythonhosted-size "14 MB">
15 <!ENTITY pythonhosted-buildsize "2.2 MB">
16 <!ENTITY pythonhosted-time "TBD SBU)">
17]>
18
19<sect2 id="pythonhosted" xreflabel="pythonhosted files">
20 <!--<?dbhtml filename="pythonhosted.html"?>-->
21
22 <title>Building pythonhosted.org Files</title>
23
24 <indexterm zone="pythonhosted">
25 <primary sortas="a-pythonhosted">pythonhosted</primary>
26 </indexterm>
27
28 <sect3 role="package">
29 <title>Introduction to pythonhosted.org Files</title>
30
31 <para>
[54d58907]32 This section is for user convenience and is optional.
33 It can be used to fetch and install all the pythonhosted.org module
[7c086d9]34 packages below in two convenient scripts.
35 </para>
36
37 &lfs112_checked;
38
39 <bridgehead renderas="sect4">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): &pythonhosted-download-http;
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&pythonhosted-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &pythonhosted-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &pythonhosted-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &pythonhosted-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &pythonhosted-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect4">Pythonhosted.org Dependencies</bridgehead>
74
75 <bridgehead renderas="sect5">Required</bridgehead>
76 <para role="required">
77 TBD
78 <!--<xref linkend="fontforge"/>,-->
79 <!-- does not seem to be needed as of 5.22.4 <xref linkend="GConf"/>, -->
80 </para>
81
82 <bridgehead renderas="sect5">Recommended</bridgehead>
83 <para role="recommended">
84 TBD
85 <!--<xref linkend="fftw"/>,-->
86 </para>
87
88 <bridgehead renderas="sect5">Optional</bridgehead>
89 <para role="optional">
90 TBD
91 <!--
92 <xref linkend="glu"/>,
93 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)-->
94 </para>
95 <!--
96 <para condition="html" role="usernotes">User Notes:
97 <ulink url="&blfs-wiki;/pythonhosted"/></para>
98 -->
99 </sect3>
100
101 <sect3>
102 <title>Downloading All Pythonhosted Module Files</title>
103
104 <para>
105 The easiest way to install the modules from the files.pythonhosted.org site
[54d58907]106 is to run a script to install them all at once.
[7c086d9]107 </para>
108
109 <para>
110 The order of building files is important due to internal dependencies.
111 First, create the list of files in the proper order as follows:
112 </para>
113
114<screen><userinput>cat &gt; pythonhosted-files.md5 &lt;&lt; "EOF"
115<literal>]]></xsl:variable>
116 <xsl:variable name="part2"><![CDATA[</literal>
117EOF</userinput></screen>
118
119 <para>
120 Next, create a script to fetch the files:
121 </para>
122
123 <screen><userinput>cat &gt; get-pythonhosted-files.sh &lt;&lt; "EOF"
[54d58907]124<literal>#! /bin/bash
[7c086d9]125
126PYTHONHOSTED=https://files.pythonhosted.org/packages/source
127
128mkdir -p pythonhosted
129cd pythonhosted
130
131for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}')
132do
133 # Don't try to get a package that is already present
134 [ -e $package ] &amp;&amp; continue
135 basename=$(echo $package|sed 's/-[[:digit:]].*$//')
136 basechar=$(echo $basename|cut -c 1)
137 url=$PYTHONHOSTED/$basechar/$basename/$package
138 wget $url
139done
140EOF</literal></userinput></screen>
141
142 <para>
143 Run the script and check the files:
144 </para>
145
146 <screen><userinput>bash get-pythonhosted-files.sh &amp;&amp;
147 md5sum -c ../pythonhosted-files.md5</userinput></screen>
148
149 </sect3>
150
151 <sect3 role="installation">
152 <title>Installation of Pythonhosted Modules</title>
153
154 <para>
155 Set up a script to install all of the packages:
156 </para>
157
158 <screen><userinput>cat &gt; install-pythonhosted-files.sh &lt;&lt; "EOF"
159<literal>#! /bin/bash
160
161cd pythonhosted
162
163for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}')
164do
165 name=$(echo $package|sed 's/-[[:digit:]].*$//')
166
[54d58907]167 # Don't try to install the package if it already installed
[7c086d9]168 installed=$(pip3 show $name 2&gt; /dev/null | grep Version:)
[54d58907]169
[7c086d9]170 unset version
[54d58907]171 if [ -n $installed ]; then
172 version=$(echo $installed | awk '{print $2}')
[7c086d9]173 fi
174
175 if [ -n "$version" ]; then
176 if [ ! $(echo $package | grep -q $version) ]; then
177 echo $package is already installed
178 continue
179 fi
180 fi
181
182 # Now install the package
183 packagedir=${package%.tar.?z*}
184 rm -rf $packagedir
185 tar -xf $package
186 pushd $packagedir
187 pip3 wheel -w dist --no-build-isolation --no-deps $PWD
188 sudo pip3 install --no-index --find-links dist --no-cache-dir \
189 --no-user --upgrade $name
190 popd
[54d58907]191done</literal></userinput></screen>
[7c086d9]192
193 <para>
[54d58907]194 Now run the script to install the files. If the script is run
[7c086d9]195 multiple times, it will not try to reinstall the modules unless
196 the version in the .md5 file has been changed.
197 </para>
198
199 <screen><userinput>bash install-pythonhosted-files.sh</userinput></screen>
200
[54d58907]201 <para>Some of the packages have test procedures. See the individual
[7c086d9]202 package sections below to run any desired tests.</para>
203
204 </sect3>
205
206 <sect3 role="content">
207 <title>Contents</title>
208
209 <para>
210 See the contents of the individual package sections below.
211 </para>
212
213 </sect3>
214
215</sect2>]]></xsl:variable>
216
217</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.