(snippet
'(begin (substitute* "setup.py"
(("scripts=\\['onlykey_agent.py'\\]")
"py_modules=['onlykey_agent']"))
#t))))
Typically these kind of changes go into a phase. Search other package declarations for "substitute" to see how this is done. source-snippets are primary for removing binaries and proprietary code.
Regarding the other issue, I can't give any advice, since I don't
know the code :-)
-- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |