[ANNOUNCEMENT] cygport 0.36.1-1
Marco Atzeri
marco.atzeri@gmail.com
Sat Mar 11 20:15:59 GMT 2023
On 11.03.2023 17:29, Jon Turney via Cygwin wrote:
>
> The following packages have been uploaded to the Cygwin distribution:
>
> * cygport-0.36.1-1
>
Hi Jon,
I was a bit too late...
Updating the python 3.[89] subpackages, I finally hit
a case where setup.py and setup.cfg are missing as obsolete.
Attached patch solved the issue and allowed to build
python-platformdirs-3.1.1-1
Regards
Marco
-------------- next part --------------
From 4081ce236a5d8f9b76afd9c68e489600d7b434f1 Mon Sep 17 00:00:00 2001
From: Marco Atzeri <marco.atzeri@gmail.com>
Date: Sat, 11 Mar 2023 21:00:15 +0100
Subject: [PATCH] Allow wheel to manage project without setup.py and setup.cfg
and use the pyproject.toml (PEP 518)
---
cygclass/python-wheel.cygclass | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/cygclass/python-wheel.cygclass b/cygclass/python-wheel.cygclass
index 1ef23826..b0f5288a 100644
--- a/cygclass/python-wheel.cygclass
+++ b/cygclass/python-wheel.cygclass
@@ -159,9 +159,13 @@ fi
python_wheel_compile() {
local ver
- if [ ! -e setup.py ] && [ ! -e setup.cfg ]
+ if [ ! -e pyproject.toml ]
then
- error "No Python Distutils module detected in source tree"
+ warning "No pyproject.toml (PEP 518) detected in source tree"
+ if [ ! -e setup.py ] && [ ! -e setup.cfg ]
+ then
+ error "No Python Distutils module detected in source tree"
+ fi
fi
for ver in ${PYTHON_WHEEL_VERSIONS//:/ }
@@ -189,9 +193,13 @@ python_wheel_compile() {
python_wheel_install() {
local ver whl
- if [ ! -e setup.py ] && [ ! -e setup.cfg ]
+ if [ ! -e pyproject.toml ]
then
- error "No Python Distutils module detected in source tree"
+ warning "No pyproject.toml (PEP 518) detected in source tree"
+ if [ ! -e setup.py ] && [ ! -e setup.cfg ]
+ then
+ error "No Python Distutils module detected in source tree"
+ fi
fi
for ver in ${PYTHON_WHEEL_VERSIONS//:/ }
--
2.39.0
More information about the Cygwin-apps
mailing list