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

Changing matlab installation path probing? #45

Open
t20100 opened this issue Oct 8, 2024 · 0 comments
Open

Changing matlab installation path probing? #45

t20100 opened this issue Oct 8, 2024 · 0 comments

Comments

@t20100
Copy link

t20100 commented Oct 8, 2024

As it is matlabengine detects matlab installation path in the setup.py at installation time by checking paths in LD_LIBRARY_PATH.

This requires:

  • LD_LIBRARY_PATH to be defined
  • The installation process to be held in the same environment as it will used

Why not also using shutil.which to probe for the installation path of matlab rather than only relying on LD_LIBRARY_PATH?

What about moving this probing from setup.py (which goal is to produce the _arch.txt file) to matlab/__init__.py where this information is actually used? This would allow to make wheels and be resilient to changes in the path matlab is installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant