Changeset 41f908a


Ignore:
Timestamp:
11/10/2022 04:12:53 AM (18 months ago)
Author:
Bruce Dubbs <bdubbs@…>
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
Message:

Start fleshing out pythonhosted.xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/python-dependencies/pythonhosted.xml

    re09da3c r41f908a  
    88  <!ENTITY pythonhosted-download-ftp  " ">
    99  <!ENTITY pythonhosted-md5sum        "See Below">
    10   <!ENTITY pythonhosted-size          "TBD MB">
    11   <!ENTITY pythonhosted-buildsize     "TBD GB (TBD MB installed)">
     10  <!ENTITY pythonhosted-size          "14 MB">
     11  <!ENTITY pythonhosted-buildsize     "2.2 MB">
    1212  <!ENTITY pythonhosted-time          "TBD SBU)">
    1313]>
     
    2626
    2727  <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.
    3031  </para>
    3132
     
    149150
    150151mkdir -p pythonhosted
    151 rm -f pythonhosted/*.gz
    152152cd pythonhosted
    153153
     
    176176
    177177    <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 &gt; install-pythonhosted-files.sh &lt;&lt; "EOF"
     182<literal>#! /bin/bash
     183
     184cd pythonhosted
     185
     186for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}')
    183187do
    184188  name=$(echo $package|sed 's/-[[:digit:]].*$//')
    185189
    186190  # Don't try to install the package if it already installed 
    187   installed_version=$(pip3 show $name 2&gt; /dev/null | grep Version: | awk '{print $2}')
    188   if [ -n $installed_version ]; then   
    189     [ $(echo $package | grep -q $installed_version) ] &amp;&amp; continue
     191  installed=$(pip3 show $name 2&gt; /dev/null | grep Version:)
     192   
     193  unset version
     194  if [ -n $installed ]; then   
     195    version=$(echo $installed | awk '{print $2}')
    190196  fi
    191197
     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
    192206  packagedir=${package%.tar.?z*}
     207  rm -rf $packagedir
    193208  tar -xf $package
    194209  pushd $packagedir
     
    197212                      --no-user --upgrade $name
    198213  popd
    199   rm -rf $packagedir
    200 done</userinput></screen>
     214done</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>
    201226
    202227  </sect3>
    203   <!--
    204   <sect2 role="content">
     228
     229  <sect3 role="content">
    205230    <title>Contents</title>
    206231
    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
    230238</sect2>
Note: See TracChangeset for help on using the changeset viewer.