Skip to content

Commit

Permalink
Merge pull request #42 from open-space-collective/dev@lucas
Browse files Browse the repository at this point in the history
[feature] Add Boost.Python shared library support
  • Loading branch information
lucas-bremond authored Aug 20, 2018
2 parents 7aa4c3e + e45d77e commit 1f627d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion share/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ PROJECT (${PROJECT_NAME} VERSION ${PROJECT_VERSION_STRING} LANGUAGES "C" "CXX")

### Boost [1.67.0]

SET (Boost_USE_STATIC_LIBS ON)
SET (Boost_USE_STATIC_LIBS OFF)
SET (Boost_USE_MULTITHREADED ON)

UNSET (Boost_INCLUDE_DIR CACHE)
Expand Down Expand Up @@ -126,6 +126,7 @@ ADD_CUSTOM_COMMAND (OUTPUT ${OUTPUT}
COMMAND mkdir -p "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}"
COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/tools/python/Library/__init__.py" "${CMAKE_CURRENT_BINARY_DIR}/Library/__init__.py"
COMMAND cp "${CMAKE_CURRENT_SOURCE_DIR}/tools/python/${PROJECT_PATH}/__init__.py" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/__init__.py"
COMMAND cp "/usr/local/lib/libboost_python36.so.1.68.0" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/libboost_python36.so.1.68.0"
COMMAND cp "${CMAKE_SOURCE_DIR}/lib/${SHARED_LIBRARY_TARGET}" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/liblibrary-core.so.0"
COMMAND cp "${CMAKE_SOURCE_DIR}/lib/${LIBRARY_TARGET}" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/LibraryCorePy.so"
COMMAND ${PYTHON} ${SETUP_PY} bdist_wheel
Expand Down
2 changes: 1 addition & 1 deletion share/python/tools/python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ setuptools.setup(
),
keywords="open-space-collective core",
packages=setuptools.find_packages(),
package_data={"": ["${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/LibraryCorePy.so", "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/liblibrary-core.so.0"]}
package_data={"": ["${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/LibraryCorePy.so", "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/liblibrary-core.so.0", "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/libboost_python36.so.1.68.0"]}
)
2 changes: 1 addition & 1 deletion tools/.env
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fi

repository_name="openspacecollective"
# image_version="$(echo ${version} | head -c 5)"
image_version="0.1.5"
image_version="0.1.6"

image_name="${repository_name}/${project_name}:${image_version}"

Expand Down
2 changes: 1 addition & 1 deletion tools/development/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

################################################################################################################################################################

FROM openspacecollective/library-base:0.1.3
FROM openspacecollective/library-base:0.1.4

LABEL maintainer="[email protected]"

Expand Down

0 comments on commit 1f627d4

Please sign in to comment.