mirror of
https://github.com/boostorg/python.git
synced 2026-01-20 04:42:28 +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:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: [3.8.10]
|
||||
python-version: ['3.8.10', '3.12']
|
||||
cxx: [clang++]
|
||||
std: [c++11, c++14] # TODO: c++17 is failing !
|
||||
|
||||
@@ -32,17 +32,19 @@ jobs:
|
||||
faber -v
|
||||
sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber
|
||||
faber \
|
||||
--with-boost-include=/opt/homebrew/Cellar/boost/1.86.0/include \
|
||||
--with-boost-include=$(brew --prefix boost)/include \
|
||||
--builddir=build \
|
||||
cxx.name=${{ matrix.cxx }} \
|
||||
cxxflags=-std=${{ matrix.std }} \
|
||||
cppflags=-std=${{ matrix.std }} \
|
||||
-j`sysctl -n hw.ncpu`
|
||||
- name: test
|
||||
run: |
|
||||
faber \
|
||||
--with-boost-include=/opt/homebrew/Cellar/boost/1.86.0/include \
|
||||
--with-boost-include=$(brew --prefix boost)/include \
|
||||
--builddir=build\
|
||||
cxx.name=${{ matrix.cxx }} \
|
||||
cxxflags=-std=${{ matrix.std }} \
|
||||
cppflags=-std=${{ matrix.std }} \
|
||||
-j`sysctl -n hw.ncpu` \
|
||||
test.report
|
||||
|
||||
2
.github/workflows/test-ubuntu.yml
vendored
2
.github/workflows/test-ubuntu.yml
vendored
@@ -39,6 +39,7 @@ jobs:
|
||||
--builddir=build \
|
||||
cxx.name=${{ matrix.cxx }} \
|
||||
cxxflags=-std=${{ matrix.std }} \
|
||||
cppflags=-std=${{ matrix.std }} \
|
||||
-j`nproc`
|
||||
- name: test
|
||||
run: |
|
||||
@@ -47,5 +48,6 @@ jobs:
|
||||
--builddir=build \
|
||||
cxx.name=${{ matrix.cxx }} \
|
||||
cxxflags=-std=${{ matrix.std }} \
|
||||
cppflags=-std=${{ matrix.std }} \
|
||||
-j`nproc` \
|
||||
test.report
|
||||
|
||||
@@ -222,7 +222,13 @@ namespace
|
||||
, char const* ref_type)
|
||||
{
|
||||
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(
|
||||
#if PY_VERSION_HEX >= 0x3000000
|
||||
|
||||
Reference in New Issue
Block a user