Skip to content

Commit 6ef1168

Browse files
committed
Address deprecation warning and unsupported arg in s390x build process
1 parent dec825a commit 6ef1168

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

scripts/sandbox.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,46 @@ def main() -> int:
9090
CMakeLists.txt:2 (project)
9191
"""
9292

93+
"""
94+
creating build/temp.linux-s390x-cpython-312/psutil/arch/linux
95+
/mnt/zig cc -target s390x-linux-gnu -fno-strict-overflow
96+
-Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG
97+
-O2 -fexceptions -g -grecord-gcc-switches -pipe
98+
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
99+
-Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong
100+
-m64 -march=z14 -mtune=z15 -fasynchronous-unwind-tables
101+
-fstack-clash-protection -O2 -fexceptions -g -grecord-gcc-switches
102+
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
103+
-Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong
104+
-m64 -march=z14 -mtune=z15 -fasynchronous-unwind-tables
105+
-fstack-clash-protection -O2 -fexceptions -g -grecord-gcc-switches
106+
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
107+
-Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong
108+
-m64 -march=z14 -mtune=z15 -fasynchronous-unwind-tables
109+
-fstack-clash-protection -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4
110+
-DPSUTIL_VERSION=700 -DPy_LIMITED_API=0x03060000
111+
-DPSUTIL_LINUX=1 -I/tmp/.tmpWlL4ZP/builds-v0/.tmpOwAhw2/include
112+
-I/usr/include/python3.12 -c psutil/_psutil_common.c -o
113+
build/temp.linux-s390x-cpython-312/psutil/_psutil_common.o
114+
[stderr]
115+
/tmp/.tmpWlL4ZP/builds-v0/.tmpOwAhw2/lib64/python3.12/site-packages/setuptools/dist.py:759:
116+
SetuptoolsDeprecationWarning: License classifiers are deprecated.
117+
!!
118+
119+
********************************************************************************
120+
Please consider removing the following classifiers in favor of a
121+
SPDX license expression:
122+
License :: OSI Approved :: BSD License
123+
See
124+
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
125+
for details.
126+
127+
********************************************************************************
128+
!!
129+
self._finalize_license_expression()
130+
error: unsupported preprocessor arg: -D_FORTIFY_SOURCE
131+
"""
132+
93133
def buildinputs(
94134
dockerfile: pathlib.Path | str,
95135
platform: Literal["linux/amd64", "linux/arm64", "linux/s390x", "linux/ppc64le"] = "linux/amd64"

0 commit comments

Comments
 (0)