gazebosim / gz-math

General purpose math library for robot applications.
https://gazebosim.org/libs/math
Apache License 2.0
54 stars 65 forks source link

Ignition Math Python interface needs to export PYTHONPATH #270

Open ahcorde opened 2 years ago

ahcorde commented 2 years ago

When SWIG is active and we are building Ignition Math Python interfaces the PYTHONPATH environment variables is not been setted in the console. We should do it manually.

I checked ign-cmake and I didn't find any function that provides this functionality.

chapulina commented 2 years ago

In which situations is PYTHONPATH needed?

  1. When compiling ign-math
  2. When compiling downstream SWIG bindings that use ign-math's bindings
  3. At run time
ahcorde commented 2 years ago
  1. At run time
chapulina commented 2 years ago

Here's an issue that's also talking about the ability of setting environment variables at runtime: https://github.com/ignitionrobotics/ign-cmake/issues/185

I think at the moment the best we can do is install a setup.sh file and instruct users to source it before using the library.

chapulina commented 2 years ago

See #271