Verified Commit 1d7de03c authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: remove lib prefix for the Python wrapper

This is for Windows compatibility
parent 97c8f736
......@@ -114,6 +114,8 @@ SET(${PYWRAP}_HEADERS ${${PROJECT_NAME}_PYTHON_HEADERS})
IF(BUILD_PYTHON_INTERFACE)
ADD_LIBRARY(${PYWRAP} SHARED ${${PYWRAP}_SOURCES} ${${PYWRAP}_HEADERS})
ADD_DEPENDENCIES(python ${PYWRAP})
SET_TARGET_PROPERTIES(${PYWRAP} PROPERTIES PREFIX "") # Remove lib prefix for the target
# Do not report:
# -Wconversion as the BOOST_PYTHON_FUNCTION_OVERLOADS implicitly converts.
......
......@@ -3,9 +3,9 @@
#
import numpy
from .libpinocchio_pywrap import *
from .pinocchio_pywrap import *
from .libpinocchio_pywrap import __version__, __raw_version__
from .pinocchio_pywrap import __version__, __raw_version__
from . import utils
from .explog import exp, log
......
......@@ -8,7 +8,7 @@ from __future__ import print_function
import warnings as _warnings
from . import libpinocchio_pywrap as pin
from . import pinocchio_pywrap as pin
from .deprecation import deprecated, DeprecatedWarning
# This function is only deprecated when using a specific signature. Therefore, it needs special care
......
......@@ -7,7 +7,7 @@ import math
import numpy as np
from . import libpinocchio_pywrap as pin
from . import pinocchio_pywrap as pin
def exp(x):
if isinstance(x, pin.Motion):
......
......@@ -2,7 +2,7 @@
# Copyright (c) 2015-2020 CNRS INRIA
#
from . import libpinocchio_pywrap as pin
from . import pinocchio_pywrap as pin
from . import utils
from .deprecation import deprecated
from .shortcuts import buildModelsFromUrdf, createDatas
......
......@@ -4,7 +4,7 @@
import numpy as np
from . import libpinocchio_pywrap as pin
from . import pinocchio_pywrap as pin
from .robot_wrapper import RobotWrapper
......
......@@ -4,7 +4,7 @@
## In this file, some shortcuts are provided ##
from . import libpinocchio_pywrap as pin
from . import pinocchio_pywrap as pin
from . import WITH_HPP_FCL, WITH_HPP_FCL_BINDINGS
nle = pin.nonLinearEffects
......
......@@ -9,8 +9,8 @@ import sys
import numpy as np
import numpy.linalg as npl
from . import libpinocchio_pywrap as pin
from .libpinocchio_pywrap.rpy import matrixToRpy, rpyToMatrix, rotate
from . import pinocchio_pywrap as pin
from .pinocchio_pywrap.rpy import matrixToRpy, rpyToMatrix, rotate
from .deprecation import deprecated
......
from .. import libpinocchio_pywrap as pin
from .. import pinocchio_pywrap as pin
from ..shortcuts import buildModelsFromUrdf, createDatas
import time
......
from .. import libpinocchio_pywrap as pin
from .. import pinocchio_pywrap as pin
from ..shortcuts import buildModelsFromUrdf, createDatas
from ..utils import npToTuple
......
from .. import libpinocchio_pywrap as pin
from .. import pinocchio_pywrap as pin
from ..shortcuts import buildModelsFromUrdf, createDatas
from ..utils import npToTuple
......
import warnings
from .. import libpinocchio_pywrap as pin
from .. import pinocchio_pywrap as pin
from ..utils import npToTuple
from .base_visualizer import BaseVisualizer
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment