Updated: python packages
Marco Atzeri
marco.atzeri@gmail.com
Sat Sep 12 17:45:23 GMT 2026
On 12/09/2026 17:57, Jon Turney wrote:
> On 08/09/2026 07:02, Marco Atzeri via Cygwin-announce wrote:
>> New release for
>>
>> UPDATED packages
>
> Thanks very much for all your work on these.
>
>> python312-sphinx-7.4.7-1-noarch.tar.xz
>> python312-sphinx-9.1.0-1-noarch.tar.xz
>> python39-sphinx-7.4.7-1-noarch.tar.xz
>
> I updated python312-sphinx's dependencies on sourceware to add
> python312-snowballstemmer (which seems to have gone missing) and
> python312-roman-numerals (which is new), since these seem to be needed
> to do anything.
It is always difficult to be sure of the tons of dependencies.
Moreover dependencies for testing are a nightmare
> Please consider adding these to the cygport for future versions of sphinx.
>
> (also noticed in passing that python-roman and python-roman-numerals
> seem to have a summary/description cut-and-pasted from elsewhere)
I will look on both.
I will also need to write and send you some patches to change defaults
for src_test, src_compile and a way to define alternatives without
writing every thing on the foo.cygport
To finish deploying all the missing python312-xxx is current priority
Regards
Marco
baseline for cygport with latest python packages:
DIFF_EXCLUDES+="version.py _version.py"
############## base test ###################
src_test() {
for v in ${PYTHON_WHEEL_VERSIONS//:/ }
do
cd ${B}
export
PYTHONPATH="${D}/usr/lib/python${v}/site-packages:/usr/lib/python${v}/site-packages"
echo "testing ${v}"
pytest-${v} || TRUE
done
}
############## install with variants #####################
src_install() {
cd ${B}
python_wheel_install
pushd ${D}/usr/bin
for v in ${PYTHON_WHEEL_VERSIONS//:/ }
do
for x in foo1 foo2 foo3
do
sed -i -e "1s/.exe//g" ${x}
cp ${x} ${x}-${v}
sed -i -e "1s/python$/python${v}/g" ${x}-${v}
sed -i -e "1s/3.12/${v}/g" ${x}-${v}
done
done
}
############## install with alternatives #################
src_install() {
cd ${B}
python_wheel_install
pushd ${D}/usr/bin
for v in ${PYTHON_WHEEL_VERSIONS//:/ }
do
for x in tox
do
sed -i -e "1s/.exe//g" ${x}
cp ${x} ${x}${v}
sed -i -e "1s/python$/python${v}/g" ${x}${v}
sed -i -e "1s/3.12/${v}/g" ${x}${v}
done
done
# removing unversioned info
rm tox
# writing post install alternatives script for tox
mkdir -p ${D}/etc/postinstall
pushd ${D}/etc/postinstall
for v in ${PYTHON_WHEEL_VERSIONS//:/ }
do
ver=$(echo ${v} | sed "s/\.//")
echo "# Install this package as a tox alternative.
TOX_VERSION=${v}
TOX_PRIORITY=${ver}
/usr/sbin/alternatives --install /usr/bin/tox tox /usr/bin/tox${v} ${ver}
" >> python${ver}-tox.sh
done
# writing pre remove alternatives script for tox
mkdir -p ${D}/etc/preremove
pushd ${D}/etc/preremove
for v in ${PYTHON_WHEEL_VERSIONS//:/ }
do
ver=$(echo ${v} | sed "s/\.//")
echo "# Remove this package as tox alternative.
/usr/sbin/alternatives --remove tox /usr/bin/tox${v}
" > python${ver}-tox.sh
done
}
More information about the Cygwin-apps
mailing list