Skip to content

Conversation

@gustaphe
Copy link

@gustaphe gustaphe commented Jul 15, 2025

The main thing in the way of Windows compatibility is using shell=True, which seems to be recommended against for security reasons anyway.

A few things are not yet fixed:

  • Archiving acts weird, I think it expects slash-separated file names inside tar files but receives backslashes
  • Matlab doesn't yet work, it still gets called with --version for some reason
  • Probably a bunch of things I haven't tested yet

Anyway, figured I would offer up what I've found so far. Is this too agressive?

@gustaphe
Copy link
Author

gustaphe commented Jul 16, 2025

This works. It currently uses Matlab >=2014's matlab.codetools.requiredFilesAndProducts instead of depfun which was deprecated. Also Matlab >=2019's -batch to run headless. That part should probably be configurable as it is breaking.

There are a couple of details I have not worked on because I don't quite understand them, like LaunchMode.generate_command.

Archiving I cannot get to work, whether in Matlab or Python. That's probably an OS issue.

@apdavison
Copy link
Contributor

Thanks @gustaphe - I've dug out an old laptop and asked our IT department to update it to Windows 11 and install MATLAB, so I should be able to test this soon.

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

Successfully merging this pull request may close these issues.

2 participants