Closed ArthurAdmiraal closed 2 years ago
Sadly, the OS X LTSpice executable doesn't seem to have the same capabilities as the windows executable. Specifically, there doesn't seem to be a way to automatically generate a netlist, as mentioned here. This makes this issue significantly more difficult. The infrastructure required for #25 could be expanded to generate netlists from within SLiCAP though, which is the solution I'll be pursuing from now on.
As a bonus, this has the potential to remove the LTSpice dependency.
Hi Arthur, As far as I know, the mac version of LTspice doesn't support batch netlist generation. That's why it has not been implemented.
Problem
makeNetlist
doesn't work in OS X with native LTSpice. The Linux wine commands might work for wine users, but a significant part of the userbase will have the native version. This will fail for two reasons:SLiCAP.py
only differentiates between Windows and Linux, but the command on OS X is slightly different.setup.py
only differentiates between Windows and Linux, but the location in OS X is slightly different. This can be manually overridden, but isn't a great user experience.Proposed solution
In
setup.py
, differentiate a case for OS X and make searching for a native LTSpice the default behaviour. If it isn't found, fall back to the Linux commands. InSLiCAP.py
, differentiate a case for OS X with native LTSpice. Either store whether LTSpice is native or detect from path (preferred).