mirror of
https://github.com/boostorg/python.git
synced 2026-01-20 16:52:15 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b7a8ccc85 | ||
|
|
3e7be69e1e | ||
|
|
cbdf1ce2a1 | ||
|
|
4fe3403584 | ||
|
|
b1b43f1e1a |
8
.github/workflows/test-osx.yml
vendored
8
.github/workflows/test-osx.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8.10]
|
python-version: ['3.8.10', '3.12']
|
||||||
cxx: [clang++]
|
cxx: [clang++]
|
||||||
std: [c++11, c++14] # TODO: c++17 is failing !
|
std: [c++11, c++14] # TODO: c++17 is failing !
|
||||||
|
|
||||||
@@ -32,17 +32,19 @@ jobs:
|
|||||||
faber -v
|
faber -v
|
||||||
sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber
|
sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber
|
||||||
faber \
|
faber \
|
||||||
--with-boost-include=/opt/homebrew/Cellar/boost/1.86.0/include \
|
--with-boost-include=$(brew --prefix boost)/include \
|
||||||
--builddir=build \
|
--builddir=build \
|
||||||
cxx.name=${{ matrix.cxx }} \
|
cxx.name=${{ matrix.cxx }} \
|
||||||
cxxflags=-std=${{ matrix.std }} \
|
cxxflags=-std=${{ matrix.std }} \
|
||||||
|
cppflags=-std=${{ matrix.std }} \
|
||||||
-j`sysctl -n hw.ncpu`
|
-j`sysctl -n hw.ncpu`
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
faber \
|
faber \
|
||||||
--with-boost-include=/opt/homebrew/Cellar/boost/1.86.0/include \
|
--with-boost-include=$(brew --prefix boost)/include \
|
||||||
--builddir=build\
|
--builddir=build\
|
||||||
cxx.name=${{ matrix.cxx }} \
|
cxx.name=${{ matrix.cxx }} \
|
||||||
cxxflags=-std=${{ matrix.std }} \
|
cxxflags=-std=${{ matrix.std }} \
|
||||||
|
cppflags=-std=${{ matrix.std }} \
|
||||||
-j`sysctl -n hw.ncpu` \
|
-j`sysctl -n hw.ncpu` \
|
||||||
test.report
|
test.report
|
||||||
|
|||||||
2
.github/workflows/test-ubuntu.yml
vendored
2
.github/workflows/test-ubuntu.yml
vendored
@@ -39,6 +39,7 @@ jobs:
|
|||||||
--builddir=build \
|
--builddir=build \
|
||||||
cxx.name=${{ matrix.cxx }} \
|
cxx.name=${{ matrix.cxx }} \
|
||||||
cxxflags=-std=${{ matrix.std }} \
|
cxxflags=-std=${{ matrix.std }} \
|
||||||
|
cppflags=-std=${{ matrix.std }} \
|
||||||
-j`nproc`
|
-j`nproc`
|
||||||
- name: test
|
- name: test
|
||||||
run: |
|
run: |
|
||||||
@@ -47,5 +48,6 @@ jobs:
|
|||||||
--builddir=build \
|
--builddir=build \
|
||||||
cxx.name=${{ matrix.cxx }} \
|
cxx.name=${{ matrix.cxx }} \
|
||||||
cxxflags=-std=${{ matrix.std }} \
|
cxxflags=-std=${{ matrix.std }} \
|
||||||
|
cppflags=-std=${{ matrix.std }} \
|
||||||
-j`nproc` \
|
-j`nproc` \
|
||||||
test.report
|
test.report
|
||||||
|
|||||||
@@ -222,7 +222,13 @@ namespace
|
|||||||
, char const* ref_type)
|
, char const* ref_type)
|
||||||
{
|
{
|
||||||
handle<> holder(source);
|
handle<> holder(source);
|
||||||
if (source->ob_refcnt <= 1)
|
if (
|
||||||
|
#if PY_VERSION_HEX < 0x03090000
|
||||||
|
source->ob_refcnt
|
||||||
|
#else
|
||||||
|
Py_REFCNT(source)
|
||||||
|
#endif
|
||||||
|
<= 1)
|
||||||
{
|
{
|
||||||
handle<> msg(
|
handle<> msg(
|
||||||
#if PY_VERSION_HEX >= 0x3000000
|
#if PY_VERSION_HEX >= 0x3000000
|
||||||
|
|||||||
Reference in New Issue
Block a user