--- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ current_dir = os.path.dirname(os.path.abspath(__file__)) extra_link_args = [] -if sys.platform.startswith('win'): +if 'MSC' in sys.version: extra_link_args = ['-static'] setup(