Changing matlab installation path probing?

Aperta
#45 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Start by reading setup.py to understand the current LD_LIBRARY_PATH probing and _arch.txt generation, then inspect matlab/init.py where the installation information is used. Compare using shutil.which and moving probing to runtime, while checking how wheel creation is affected. Done means installation is not tied to the runtime environment and MATLAB path changes remain supported.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
97
Fork
13
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mathworks/matlab-engine-for-python

Tutte le issue di mathworks/matlab-engine-for-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.