Skip to content
Snippets Groups Projects
Verified Commit bd7beda4 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake: change python lib name (to avoid conflicts)

parent 38869d76
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,6 @@ SET_TARGET_PROPERTIES(${PYWRAP}
PROPERTIES
PREFIX ""
SUFFIX ${PYTHON_EXT_SUFFIX}
OUTPUT_NAME "${PROJECT_NAME}"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/python/${PROJECT_NAME}"
)
......
#
# Copyright (c) 2017-2019 CNRS INRIA
# Copyright (c) 2017-2021 CNRS INRIA
#
from .eigenpy import *
from .eigenpy import __version__, __raw_version__
from .eigenpy_pywrap import *
from .eigenpy_pywrap import __version__, __raw_version__
/*
* Copyright 2014-2019, CNRS
* Copyright 2018-2020, INRIA
* Copyright 2018-2021, INRIA
*/
#include "eigenpy/eigenpy.hpp"
......@@ -19,42 +19,42 @@
using namespace eigenpy;
BOOST_PYTHON_MODULE(eigenpy)
BOOST_PYTHON_MODULE(eigenpy_pywrap)
{
namespace bp = boost::python;
enableEigenPy();
bp::scope().attr("__version__") = eigenpy::printVersion();
bp::scope().attr("__raw_version__") = bp::str(EIGENPY_VERSION);
bp::def("checkVersionAtLeast",&eigenpy::checkVersionAtLeast,
bp::args("major_version","minor_version","patch_version"),
"Checks if the current version of EigenPy is at least the version provided by the input arguments.");
exposeAngleAxis();
exposeQuaternion();
exposeGeometryConversion();
exposeComputationInfo();
{
bp::scope solvers = boost::python::class_<SolversScope>("solvers");
exposeSolvers();
exposePreconditioners();
register_symbolic_link_to_registered_type<Eigen::ComputationInfo>();
}
{
using namespace Eigen;
bp::def("is_approx",(bool (*)(const Eigen::MatrixBase<MatrixXd> &, const Eigen::MatrixBase<MatrixXd> &, const double &))&is_approx<MatrixXd,MatrixXd>,
bp::args("A","B","prec"),
"Returns True if A is approximately equal to B, within the precision determined by prec.");
bp::def("is_approx",(bool (*)(const Eigen::MatrixBase<MatrixXd> &, const Eigen::MatrixBase<MatrixXd> &))&is_approx<MatrixXd,MatrixXd>,
bp::args("A","B"),
"Returns True if A is approximately equal to B.");
}
exposeDecompositions();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment