[chirp_devel] Using TOX to test on MS Windows

Dan Smith
Fri Jan 3 07:57:20 PST 2020


> What I did was to remove the following lines from the setup.py in the
> chirp.hg file.
> 
> elif sys.platform == "win32":
>    win32_build()
> 
> I think that is what you wanted.

Yep.

> I executed tox and piped the output it to a file (attached). This
> definitely got further. It looks like there were some permissions
> errors during the tests. I don't know if those are normal errors for
> pep8 or not.

The unit test permissions failures are a little weird since it's just trying to write to files returned to it from the mktemp function. The style issues look like they may be related to windows-style line endings, although I'm not sure why it's complaining about only a few files amongst many.

Anyway, definitely much farther. I'd have to spin up a windows dev environment to debug them myself.

Today's win32 build should have ignored the in-tree setup.py file for the exe generation part. If someone can confirm that it looks okay on windows, I can remove the "if win32" bit in the main setup.py file so that it works like your test above for developers.

--Dan


More information about the chirp_devel mailing list