robotology / idyntree

Multibody Dynamics Library designed for Free Floating Robots
BSD 3-Clause "New" or "Revised" License
155 stars 65 forks source link

Fix code to obtain Python relative install dir in Python 3.12 #1168

Closed GiulioRomualdi closed 3 months ago

GiulioRomualdi commented 3 months ago

As the code in some cases return slightly different results then the previous version (see https://github.com/robotology/robotology-superbuild/issues/1238#issuecomment-1234165171), we only use it when Python >= 3.12. This is simar to https://github.com/robotology/robotology-superbuild/pull/1511

traversaro commented 3 months ago

Thanks!