Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignition Math Python interface needs to export PYTHONPATH #270

Open
ahcorde opened this issue Oct 28, 2021 · 4 comments
Open

Ignition Math Python interface needs to export PYTHONPATH #270

ahcorde opened this issue Oct 28, 2021 · 4 comments
Labels
enhancement New feature or request scripting Scripting interfaces to Ignition

Comments

@ahcorde
Copy link
Contributor

ahcorde commented Oct 28, 2021

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.

@ahcorde ahcorde added the enhancement New feature or request label Oct 28, 2021
@chapulina
Copy link
Contributor

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
Copy link
Contributor Author

ahcorde commented Oct 28, 2021

  1. At run time

@chapulina
Copy link
Contributor

Here's an issue that's also talking about the ability of setting environment variables at runtime: gazebosim/gz-cmake#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 chapulina added the scripting Scripting interfaces to Ignition label Oct 28, 2021
@chapulina
Copy link
Contributor

See #271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scripting Scripting interfaces to Ignition
Projects
None yet
Development

No branches or pull requests

2 participants