mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-10 13:04:42 +08:00
Start fleshing out pythonhosted.xml
This commit is contained in:
parent
e09da3c5e4
commit
41f908a9ee
@ -7,8 +7,8 @@
|
|||||||
<!ENTITY pythonhosted-download-http "See Below">
|
<!ENTITY pythonhosted-download-http "See Below">
|
||||||
<!ENTITY pythonhosted-download-ftp " ">
|
<!ENTITY pythonhosted-download-ftp " ">
|
||||||
<!ENTITY pythonhosted-md5sum "See Below">
|
<!ENTITY pythonhosted-md5sum "See Below">
|
||||||
<!ENTITY pythonhosted-size "TBD MB">
|
<!ENTITY pythonhosted-size "14 MB">
|
||||||
<!ENTITY pythonhosted-buildsize "TBD GB (TBD MB installed)">
|
<!ENTITY pythonhosted-buildsize "2.2 MB">
|
||||||
<!ENTITY pythonhosted-time "TBD SBU)">
|
<!ENTITY pythonhosted-time "TBD SBU)">
|
||||||
]>
|
]>
|
||||||
|
|
||||||
@ -25,8 +25,9 @@
|
|||||||
<title>Introduction to pythonhosted.org Files</title>
|
<title>Introduction to pythonhosted.org Files</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The instructions below build all of the pythonhosted.org packages
|
This section is for user convenience and is optional.
|
||||||
by using bash scripts.
|
It can be used to fetch and install all the pythonhosted.org module
|
||||||
|
packages below in two convenient scripts.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
&lfs112_checked;
|
&lfs112_checked;
|
||||||
@ -148,7 +149,6 @@ EOF</userinput></screen>
|
|||||||
PYTHONHOSTED=https://files.pythonhosted.org/packages/source
|
PYTHONHOSTED=https://files.pythonhosted.org/packages/source
|
||||||
|
|
||||||
mkdir -p pythonhosted
|
mkdir -p pythonhosted
|
||||||
rm -f pythonhosted/*.gz
|
|
||||||
cd pythonhosted
|
cd pythonhosted
|
||||||
|
|
||||||
for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}')
|
for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}')
|
||||||
@ -175,56 +175,64 @@ EOF</literal></userinput></screen>
|
|||||||
<title>Installation of Pythonhosted Modules</title>
|
<title>Installation of Pythonhosted Modules</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Install all of the packages by running the following
|
Set up a script to install all of the packages:
|
||||||
commands:
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen><userinput>for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}')
|
<screen><userinput>cat > install-pythonhosted-files.sh << "EOF"
|
||||||
|
<literal>#! /bin/bash
|
||||||
|
|
||||||
|
cd pythonhosted
|
||||||
|
|
||||||
|
for package in $(grep -v '^#' ../pythonhosted-files.md5 | awk '{print $2}')
|
||||||
do
|
do
|
||||||
name=$(echo $package|sed 's/-[[:digit:]].*$//')
|
name=$(echo $package|sed 's/-[[:digit:]].*$//')
|
||||||
|
|
||||||
# Don't try to install the package if it already installed
|
# Don't try to install the package if it already installed
|
||||||
installed_version=$(pip3 show $name 2> /dev/null | grep Version: | awk '{print $2}')
|
installed=$(pip3 show $name 2> /dev/null | grep Version:)
|
||||||
if [ -n $installed_version ]; then
|
|
||||||
[ $(echo $package | grep -q $installed_version) ] && continue
|
unset version
|
||||||
|
if [ -n $installed ]; then
|
||||||
|
version=$(echo $installed | awk '{print $2}')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$version" ]; then
|
||||||
|
if [ ! $(echo $package | grep -q $version) ]; then
|
||||||
|
echo $package is already installed
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Now install the package
|
||||||
packagedir=${package%.tar.?z*}
|
packagedir=${package%.tar.?z*}
|
||||||
|
rm -rf $packagedir
|
||||||
tar -xf $package
|
tar -xf $package
|
||||||
pushd $packagedir
|
pushd $packagedir
|
||||||
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
|
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
|
||||||
sudo pip3 install --no-index --find-links dist --no-cache-dir \
|
sudo pip3 install --no-index --find-links dist --no-cache-dir \
|
||||||
--no-user --upgrade $name
|
--no-user --upgrade $name
|
||||||
popd
|
popd
|
||||||
rm -rf $packagedir
|
done</literal></userinput></screen>
|
||||||
done</userinput></screen>
|
|
||||||
|
<para>
|
||||||
|
Now run the script to install the files. If the script is run
|
||||||
|
multiple times, it will not try to reinstall the modules unless
|
||||||
|
the version in the .md5 file has been changed.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<screen><userinput>bash install-pythonhosted-files.sh</userinput></screen>
|
||||||
|
|
||||||
|
<para>Some of the packages have test procedures. See the individual
|
||||||
|
package sections below to run any desired tests.</para>
|
||||||
|
|
||||||
</sect3>
|
</sect3>
|
||||||
<!--
|
|
||||||
<sect2 role="content">
|
<sect3 role="content">
|
||||||
<title>Contents</title>
|
<title>Contents</title>
|
||||||
|
|
||||||
<segmentedlist>
|
<para>
|
||||||
<segtitle>Installed Programs</segtitle>
|
See the contents of the individual package sections below.
|
||||||
<segtitle>Installed Libraries</segtitle>
|
</para>
|
||||||
<segtitle>Installed Directories</segtitle>
|
|
||||||
|
|
||||||
<seglistitem>
|
</sect3>
|
||||||
<seg>
|
|
||||||
There are too many plasma programs (63 in /opt/kf5/bin) to list
|
|
||||||
separately here.
|
|
||||||
</seg>
|
|
||||||
<seg>
|
|
||||||
There are too many plasma libraries (40 in /opt/kf5/lib) to list
|
|
||||||
separately here.
|
|
||||||
</seg>
|
|
||||||
<seg>
|
|
||||||
There are too many plasma directories (over 1000 in /opt/kf5) to
|
|
||||||
list separately here.
|
|
||||||
</seg>
|
|
||||||
</seglistitem>
|
|
||||||
</segmentedlist>
|
|
||||||
|
|
||||||
</sect2>
|
|
||||||
-->
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
Loading…
Reference in New Issue
Block a user