Changeset 41f908a
- Timestamp:
- 11/10/2022 04:12:53 AM (18 months ago)
- Branches:
- 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
- Children:
- 4f406ea
- Parents:
- e09da3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/python-dependencies/pythonhosted.xml
re09da3c r41f908a 8 8 <!ENTITY pythonhosted-download-ftp " "> 9 9 <!ENTITY pythonhosted-md5sum "See Below"> 10 <!ENTITY pythonhosted-size " TBDMB">11 <!ENTITY pythonhosted-buildsize " TBD GB (TBD MB installed)">10 <!ENTITY pythonhosted-size "14 MB"> 11 <!ENTITY pythonhosted-buildsize "2.2 MB"> 12 12 <!ENTITY pythonhosted-time "TBD SBU)"> 13 13 ]> … … 26 26 27 27 <para> 28 The instructions below build all of the pythonhosted.org packages 29 by using bash scripts. 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. 30 31 </para> 31 32 … … 149 150 150 151 mkdir -p pythonhosted 151 rm -f pythonhosted/*.gz152 152 cd pythonhosted 153 153 … … 176 176 177 177 <para> 178 Install all of the packages by running the following 179 commands: 180 </para> 181 182 <screen><userinput>for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}') 178 Set up a script to install all of the packages: 179 </para> 180 181 <screen><userinput>cat > install-pythonhosted-files.sh << "EOF" 182 <literal>#! /bin/bash 183 184 cd pythonhosted 185 186 for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}') 183 187 do 184 188 name=$(echo $package|sed 's/-[[:digit:]].*$//') 185 189 186 190 # Don't try to install the package if it already installed 187 installed_version=$(pip3 show $name 2> /dev/null | grep Version: | awk '{print $2}') 188 if [ -n $installed_version ]; then 189 [ $(echo $package | grep -q $installed_version) ] && continue 191 installed=$(pip3 show $name 2> /dev/null | grep Version:) 192 193 unset version 194 if [ -n $installed ]; then 195 version=$(echo $installed | awk '{print $2}') 190 196 fi 191 197 198 if [ -n "$version" ]; then 199 if [ ! $(echo $package | grep -q $version) ]; then 200 echo $package is already installed 201 continue 202 fi 203 fi 204 205 # Now install the package 192 206 packagedir=${package%.tar.?z*} 207 rm -rf $packagedir 193 208 tar -xf $package 194 209 pushd $packagedir … … 197 212 --no-user --upgrade $name 198 213 popd 199 rm -rf $packagedir 200 done</userinput></screen> 214 done</literal></userinput></screen> 215 216 <para> 217 Now run the script to install the files. If the script is run 218 multiple times, it will not try to reinstall the modules unless 219 the version in the .md5 file has been changed. 220 </para> 221 222 <screen><userinput>bash install-pythonhosted-files.sh</userinput></screen> 223 224 <para>Some of the packages have test procedures. See the individual 225 package sections below to run any desired tests.</para> 201 226 202 227 </sect3> 203 <!-- 204 <sect 2role="content">228 229 <sect3 role="content"> 205 230 <title>Contents</title> 206 231 207 <segmentedlist> 208 <segtitle>Installed Programs</segtitle> 209 <segtitle>Installed Libraries</segtitle> 210 <segtitle>Installed Directories</segtitle> 211 212 <seglistitem> 213 <seg> 214 There are too many plasma programs (63 in /opt/kf5/bin) to list 215 separately here. 216 </seg> 217 <seg> 218 There are too many plasma libraries (40 in /opt/kf5/lib) to list 219 separately here. 220 </seg> 221 <seg> 222 There are too many plasma directories (over 1000 in /opt/kf5) to 223 list separately here. 224 </seg> 225 </seglistitem> 226 </segmentedlist> 227 228 </sect2> 229 --> 232 <para> 233 See the contents of the individual package sections below. 234 </para> 235 236 </sect3> 237 230 238 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.