Skip to content

Commit

Permalink
#3978 some files require Cython v3
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 24, 2023
1 parent 4640fc1 commit ff4df9b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,17 @@ def check_cython3():
try:
import cython
print(f"found Cython version {cython.__version__}")
cython_version = int(cython.__version__.split('.')[0])
version = int(cython.__version__.split('.')[0])
except (ValueError, ImportError):
print("WARNING: unable to detect Cython version")
else:
if cython_version<3:
if version<3:
print("*******************************************")
print("please switch to Cython 3.x")
print(f" version {cython_version} is not supported")
print(f" version {version} is not supported")
print("*******************************************")
check_cython3()
return version
cython_version = check_cython3()


PKG_CONFIG = os.environ.get("PKG_CONFIG", "pkg-config")
Expand Down Expand Up @@ -2298,7 +2299,7 @@ def bundle_tests():
ace("xpra.net.websockets.handler")
ace("xpra.net.websockets.header")
ace("xpra.net.websockets.protocol")
if quic_ENABLED:
if quic_ENABLED and cython_version>=3:
ace("xpra.net.quic.client")
ace("xpra.net.quic.connection")
ace("xpra.net.quic.http")
Expand Down Expand Up @@ -2340,12 +2341,13 @@ def bundle_tests():
ace("xpra.x11.desktop.monitor_server")
ace("xpra.child_reaper")
ace("xpra.common")
ace("xpra.os_util")
ace("xpra.util")
ace("xpra.queue_scheduler")
ace("xpra.scaling_parser")
ace("xpra.simple_stats")
ace("xpra.splash_screen")
if cython_version>=3:
ace("xpra.splash_screen")
ace("xpra.os_util")


if ext_modules:
Expand Down

0 comments on commit ff4df9b

Please sign in to comment.