Skip to content

Commit e1ff78b

Browse files
committed
fix pypi_test
1 parent 2e4bea5 commit e1ff78b

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/build-wheels.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ on:
66
release-testpypi:
77
description: Do you want to release to test-pypi
88
required: true
9-
default: "true"
9+
default: true
10+
type: boolean
1011
release:
1112
description: Do you want to release to pypi
1213
required: true
13-
default: "false"
14+
default: false
15+
type: boolean
1416

1517
jobs:
1618
build_wheels_pypitest:
17-
if: ${{ github.event.inputs.release-testpypi }} == "true"
1819
name: Build wheels on ${{ matrix.os }}
1920
runs-on: ${{ matrix.os }}
21+
if: ${{ inputs.release-testpypi }}
2022
strategy:
2123
matrix:
2224
os: [ubuntu-20.04, macos-latest]
@@ -82,9 +84,9 @@ jobs:
8284
repository_url: https://test.pypi.org/legacy/
8385

8486
build_wheels:
85-
if: ${{ github.event.inputs.release }} == "true"
8687
name: Build wheels on ${{ matrix.os }}
8788
runs-on: ${{ matrix.os }}
89+
if: ${{ inputs.release }}
8890
strategy:
8991
matrix:
9092
os: [ubuntu-20.04, macos-latest]

setup_pypi_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
###############################################
2020

2121
extFiles = [
22-
'src/PY/_pinpoint_py.c',
22+
'src/PY/_pinpoint_py.cpp',
2323
]
2424

2525
# add pinpoint-common
@@ -43,11 +43,11 @@
4343
extFiles,
4444
include_dirs=['common/include',
4545
'common/jsoncpp/include', 'common/src'],
46-
libraries=agent_libraries
46+
libraries=agent_libraries,
47+
extra_compile_args=['-std=c++11']
4748
)
4849
],
4950
package_dir={'': 'plugins/PY'},
50-
# packages=find_packages('plugins/PY'),
5151
packages=find_namespace_packages(
5252
'plugins/PY', include=['pinpointPy.*', 'pinpointPy']),
5353
)

0 commit comments

Comments
 (0)