Python Standalone app on Apple

Hello

I don't really use apple products but I have created a really simple python shell package in windows it only uses

import sys import csv from collections import Counter

I would like to create an executable for macs. Unfortunately there appears to be no reliable way to do this (apparently a VM running MacOS X will work but I tried on virtualbox and it didn't) in windows.

So I am considering buying an old mac for around £100 circa 2012. If I transferred my python package and used pyinstaller would there be any reason that my executable would have any problems with newer macs? While I am here is buying a 10 year old mac a reasonable idea, just for testing?

Thank you

Python Standalone app on Apple
 
 
Q