Skip to content

Commit

Permalink
py311-312-wheels: Fix greenlet 3.x support with gcc <= 8
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Dec 4, 2024
1 parent 487239e commit 3866121
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spk/python311-wheels/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ endif
include ../../mk/spksrc.python.mk

# [greenlet]
ifeq ($(call version_ge, $(TC_GCC), 4.9),1)
ifeq ($(call version_ge, $(TC_GCC), 5.0),1)
WHEELS += src/requirements-crossenv-greenlet-v3.txt
ifeq ($(call version_lt, $(TC_GCC), 5.0),1)
else ifeq ($(call version_ge, $(TC_GCC), 4.9)$(call version_lt, $(TC_GCC), 5.0),11)
WHEELS += src/requirements-crossenv-greenlet-v3-gcc4.txt
WHEELS_CPPFLAGS += [greenlet] -std=c++11 -fpermissive
endif
else
WHEELS += src/requirements-crossenv-greenlet-v1.txt
endif
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
##
## All configurations below are optional and
## are provided to demonstrate how to build
## various wheels. Uncoment to enable.
##

# [greenlet]
# - Mandatory require full c++11 support
greenlet==3.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
# [greenlet]
# - Mandatory require full c++11 support
greenlet==3.0.3
# - Mandatory require full c++20 support added with gcc >= 8
greenlet==3.1.1
4 changes: 3 additions & 1 deletion spk/python312-wheels/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ endif
include ../../mk/spksrc.python.mk

# [greenlet]
ifeq ($(call version_ge $(TC_GCC), 4.9),1)
ifeq ($(call version_ge, $(TC_GCC), 5.0),1)
WHEELS += src/requirements-crossenv-greenlet-v3.txt
else ifeq ($(call version_ge, $(TC_GCC), 4.9)$(call version_lt, $(TC_GCC), 5.0),11)
WHEELS += src/requirements-crossenv-greenlet-v3-gcc4.txt
WHEELS_CPPFLAGS += [greenlet] -std=c++11 -fpermissive
endif

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
##
## All configurations below are optional and
## are provided to demonstrate how to build
## various wheels. Uncoment to enable.
##

# [greenlet]
# - Mandatory require full c++11 support
greenlet==3.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
# [greenlet]
# - Mandatory require full c++11 support
greenlet==3.0.3
# - Mandatory require full c++20 support added with gcc >= 8
greenlet==3.1.1

0 comments on commit 3866121

Please sign in to comment.