Skip to content

Commit e19006e

Browse files
committed
Fix setup error
1 parent df463da commit e19006e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/ci-pr-validation.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767

6868
linux-wheel:
6969
name: Wheel ${{matrix.image.name}} - Py ${{matrix.python.version}} - ${{matrix.cpu.platform}}
70+
needs: unit-tests
7071
runs-on: ubuntu-22.04
7172
timeout-minutes: 300
7273

@@ -118,6 +119,7 @@ jobs:
118119
119120
mac-wheels:
120121
name: Wheel MacOS Universal2 - Py ${{matrix.py.version}}
122+
needs: unit-tests
121123
runs-on: macos-12
122124
timeout-minutes: 300
123125

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ message(STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
6666

6767
SET(Boost_USE_STATIC_LIBS ${LINK_STATIC})
6868

69-
set(BOOST_PYTHON_NAME_LIST python3 python310)
69+
set(BOOST_PYTHON_NAME_LIST python3 python310 python39 python38 python37)
7070
foreach (BOOST_PYTHON_NAME IN LISTS BOOST_PYTHON_NAME_LIST)
7171
find_package(Boost QUIET COMPONENTS ${BOOST_PYTHON_NAME})
7272
if (${Boost_FOUND})

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ def build_extension(self, ext):
6262
if 'Windows' in platform.platform():
6363
shutil.copyfile('_pulsar.pyd', self.get_ext_fullpath(ext.name))
6464
else:
65-
shutil.copyfile('_pulsar.so', self.get_ext_fullpath(ext.name))
65+
try:
66+
shutil.copyfile('_pulsar.so', self.get_ext_fullpath(ext.name))
67+
except e as FileNotFoundError:
68+
shutil.copyfile('lib_pulsar.so', self.get_ext_fullpath(ext.name))
6669

6770

6871
# Core Client dependencies

0 commit comments

Comments
 (0)