Skip to content

Commit

Permalink
Merge pull request #128 from zivid/fix-ci-april2021
Browse files Browse the repository at this point in the history
Fix CI April2021
  • Loading branch information
eskaur committed Apr 27, 2021
2 parents 5f64d70 + dd4e88b commit a9e56bf
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion continuous-integration/deployment/expected-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.1.2.3.0
2.1.2.2.3.0
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dnf --assumeyes install \
alternatives --install /usr/bin/python python /usr/bin/python3 0 || exit $?
alternatives --install /usr/bin/pip pip /usr/bin/pip3 0 || exit $?

source "$SCRIPT_DIR/../common.sh" || exit $?
source $(realpath $SCRIPT_DIR/../common.sh) || exit $?
# Install OpenCL CPU runtime driver prerequisites
dnf --assumeyes install \
numactl-libs \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dnf --assumeyes install \
alternatives --install /usr/bin/python python /usr/bin/python3 0 || exit $?
alternatives --install /usr/bin/pip pip /usr/bin/pip3 0 || exit $?

source "$SCRIPT_DIR/../common.sh" || exit $?
source $(realpath $SCRIPT_DIR/../common.sh) || exit $?
# Install OpenCL CPU runtime driver prerequisites
dnf --assumeyes install \
numactl-libs \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ apt-yes install \
update-alternatives --install /usr/bin/python python /usr/bin/python3 0 || exit $?
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 0 || exit $?

source "$SCRIPT_DIR/../common.sh" || exit $?
source $(realpath $SCRIPT_DIR/../common.sh) || exit $?
# Install OpenCL CPU runtime driver prerequisites
apt-yes install libnuma-dev lsb-core || exit $?
install_opencl_cpu_runtime || exit $?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ apt-yes install \
update-alternatives --install /usr/bin/python python /usr/bin/python3 0 || exit $?
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 0 || exit $?

source "$SCRIPT_DIR/../common.sh" || exit $?
source $(realpath $SCRIPT_DIR/../common.sh) || exit $?
# Install OpenCL CPU runtime driver prerequisites
apt-yes install libnuma-dev lsb-core || exit $?
install_opencl_cpu_runtime || exit $?
Expand Down
2 changes: 1 addition & 1 deletion continuous-integration/python-requirements/build.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
scikit-build==0.11.1
cmake==3.18.4.post1
ninja==1.10.0.post2
conan==1.32.1
conan==1.35.2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# To be replaced by: from setuptools_scm import get_version
def get_version():
return "2.1.1"
return "2.1.2"


def _zivid_sdk_version():
Expand Down
13 changes: 6 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ file(GLOB_RECURSE HEADERS
"${CMAKE_CURRENT_BINARY_DIR}/include/*h"
)

add_library(${PROJECT_NAME} MODULE ${SOURCES} ${HEADERS})
python3_add_library(
${PROJECT_NAME}
MODULE
WITH_SOABI
${SOURCES}
)

target_include_directories(${PROJECT_NAME}
PRIVATE include
Expand All @@ -42,10 +47,4 @@ target_link_libraries(${PROJECT_NAME}
CONAN_PKG::Eigen3
)

set_target_properties(${PROJECT_NAME}
PROPERTIES
PREFIX "${PYTHON_MODULE_PREFIX}"
SUFFIX "${PYTHON_MODULE_EXTENSION}"
)

install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION modules/${PROJECT_NAME})

0 comments on commit a9e56bf

Please sign in to comment.