mdavidsaver / pyDevSup

EPICS Device Support in Python
GNU General Public License v2.0
13 stars 16 forks source link

"hollow" out `devsupMain.cpp` #29

Open mdavidsaver opened 1 year ago

mdavidsaver commented 1 year ago

I should be possible to replace all of the direct db* calls in devsupMain.cpp with indirect calls through _dbapi using the python interpreter. This would allow softIocPy* to be linked only with Com (and potentially not even than), so _dbapi to be linked "statically" without duplicate symbols, and the associated insanity.

@pheest fyi.

pheest commented 1 year ago

Hi Michael, Reflecting on this, please don't make major changes on my account. My needs are met. I would suggest making it illegal to build static, so that stoopid people like me don't make the same mistake.

I would also like to suggest that there is no need to write to a temporary file from the Python code since the text in the file is constant. This could just be a permanent file e.g. 'devsup.cmd' that is loaded into the database.