Skip to content

Commit

Permalink
Merge pull request #4 from open-space-collective/dev@lucas
Browse files Browse the repository at this point in the history
Dev@lucas
  • Loading branch information
lucas-bremond authored Aug 20, 2018
2 parents ec2d7d7 + 477bf0a commit 6dc5647
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ ELSE ()
MESSAGE (SEND_ERROR "[Eigen 3] not found.")
ENDIF ()

### Library :: Core [master]
### Library :: Core [0.1]

FIND_PACKAGE ("LibraryCore" "0.1" REQUIRED)

Expand Down
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 @@ -138,6 +138,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-mathematics.so.0"
COMMAND cp "${CMAKE_SOURCE_DIR}/lib/${LIBRARY_TARGET}" "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/LibraryMathematicsPy.so"
COMMAND ${PYTHON} ${SETUP_PY} bdist_wheel
Expand Down
2 changes: 1 addition & 1 deletion share/python/src/LibraryMathematicsPy.cxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/// @project Library/Mathematics
/// @file LibraryMathematicsPy.hpp
/// @file LibraryMathematicsPy.cxx
/// @author Lucas Brémond <[email protected]>
/// @license TBD

Expand Down
2 changes: 1 addition & 1 deletion share/python/src/LibraryMathematicsPy/Geometry.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/// @project Library/Mathematics
/// @file LibraryMathematicsPy/Geometry.hpp
/// @file LibraryMathematicsPy/Geometry.cpp
/// @author Lucas Brémond <[email protected]>
/// @license TBD

Expand Down
5 changes: 1 addition & 4 deletions share/python/src/LibraryMathematicsPy/Geometry/Angle.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/// @project Library/Mathematics
/// @file LibraryMathematicsPy/Geometry/Angle.hpp
/// @file LibraryMathematicsPy/Geometry/Angle.cpp
/// @author Lucas Brémond <[email protected]>
/// @license TBD

Expand Down Expand Up @@ -47,9 +47,6 @@ inline void LibraryMathematicsPy_Geometry_Angle ( )
.def("inDegrees", +[] (const Angle& anAngle) -> Real { return anAngle.inDegrees() ; })
.def("inArcminutes", +[] (const Angle& anAngle) -> Real { return anAngle.inArcminutes() ; })
.def("inArcseconds", +[] (const Angle& anAngle) -> Real { return anAngle.inArcseconds() ; })
// .def("inDegrees", &Angle::inDegrees)
// .def("inArcminutes", &Angle::inArcminutes)
// .def("inArcseconds", &Angle::inArcseconds)
.def("inRevolutions", &Angle::inRevolutions)
.def("toString", &Angle::toString)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/// @project Library/Mathematics
/// @file LibraryMathematicsPy/Geometry/Transformations.hpp
/// @file LibraryMathematicsPy/Geometry/Transformations.cpp
/// @author Lucas Brémond <[email protected]>
/// @license TBD

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/// @project Library/Mathematics
/// @file LibraryMathematicsPy/Geometry/Transformations/Rotations.hpp
/// @file LibraryMathematicsPy/Geometry/Transformations/Rotations.cpp
/// @author Lucas Brémond <[email protected]>
/// @license TBD

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/// @project Library/Mathematics
/// @file LibraryMathematicsPy/Geometry/Transformations/Rotations/Quaternion.hpp
/// @file LibraryMathematicsPy/Geometry/Transformations/Rotations/Quaternion.cpp
/// @author Lucas Brémond <[email protected]>
/// @license TBD

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/// @project Library/Mathematics
/// @file LibraryMathematicsPy/Geometry/Transformations/Rotations/RotationMatrix.hpp
/// @file LibraryMathematicsPy/Geometry/Transformations/Rotations/RotationMatrix.cpp
/// @author Lucas Brémond <[email protected]>
/// @license TBD

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/// @project Library/Mathematics
/// @file LibraryMathematicsPy/Geometry/Transformations/Rotations/RotationVector.hpp
/// @file LibraryMathematicsPy/Geometry/Transformations/Rotations/RotationVector.cpp
/// @author Lucas Brémond <[email protected]>
/// @license TBD

Expand Down Expand Up @@ -33,6 +33,7 @@ inline void LibraryMathematicsPy_Geometry_Transformations_Ro
.def(self_ns::str(self_ns::self))

.def("isDefined", &RotationVector::isDefined)

.def("getAxis", &RotationVector::getAxis)
.def("getAngle", &RotationVector::getAngle)
.def("Undefined", &RotationVector::Undefined)
Expand Down
2 changes: 1 addition & 1 deletion share/python/src/LibraryMathematicsPy/Objects.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/// @project Library/Mathematics
/// @file LibraryMathematicsPy/Objects.hpp
/// @file LibraryMathematicsPy/Objects.cpp
/// @author Lucas Brémond <[email protected]>
/// @license TBD

Expand Down
2 changes: 1 addition & 1 deletion share/python/src/LibraryMathematicsPy/Objects/Vector.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/// @project Library/Mathematics
/// @file Library/Mathematics/LibraryMathematicsPy/Objects/Vector.hpp
/// @file LibraryMathematicsPy/Objects/Vector.cpp
/// @author Lucas Brémond <[email protected]>
/// @license TBD

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 mathematics",
packages=setuptools.find_packages(),
package_data={"": ["${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/LibraryMathematicsPy.so", "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/liblibrary-mathematics.so.0"]}
package_data={"": ["${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/LibraryMathematicsPy.so", "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_PATH}/liblibrary-mathematics.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.3"
image_version="0.1.4"

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

Expand Down
9 changes: 4 additions & 5 deletions tools/development/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

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

FROM openspacecollective/library-core:0.1.5
FROM openspacecollective/library-core:0.1.6

LABEL maintainer="[email protected]"

Expand All @@ -34,13 +34,12 @@ RUN mkdir /tmp/eigen \
&& make install \
&& rm -rf /tmp/eigen

## Library :: Core [0.1.7]
## Library :: Core [0.1.8]

RUN mkdir -p /tmp/library-core \
&& pushd /tmp/library-core > /dev/null \
&& wget --quiet https://github.com/open-space-collective/library-core/releases/download/0.1.7/library-core-0.1.7-1.x86_64-runtime.rpm \
&& wget --quiet https://github.com/open-space-collective/library-core/releases/download/0.1.7/library-core-0.1.7-1.x86_64-devel.rpm \
&& wget --quiet https://github.com/open-space-collective/library-core/releases/download/0.1.7/library-core-0.1.7-1.x86_64-python.rpm \
&& wget --quiet https://github.com/open-space-collective/library-core/releases/download/0.1.8/library-core-0.1.8-1.x86_64-runtime.rpm \
&& wget --quiet https://github.com/open-space-collective/library-core/releases/download/0.1.8/library-core-0.1.8-1.x86_64-devel.rpm \
&& dnf install -y ./*.rpm \
&& rm -rf /tmp/library-core \
&& popd > /dev/null
Expand Down

0 comments on commit 6dc5647

Please sign in to comment.