From 6284ca3b976d89472db0b1ad46bcb8174e104a38 Mon Sep 17 00:00:00 2001 From: laggykiller Date: Sat, 24 Feb 2024 21:29:03 +0800 Subject: [PATCH] Fix build --- setup.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a08a06..de6e7f1 100644 --- a/setup.py +++ b/setup.py @@ -111,7 +111,16 @@ def check_zlib_required(conan_info: dict) -> bool: return False def quote_argument(arg): - q = '\\"' if sys.platform == "win32" and sys.version_info < (3, 7) else '"' + is_cibuildwheel = os.environ.get("CIBUILDWHEEL", "0") == "1" + + if sys.platform == "win32" and ( + (is_cibuildwheel and sys.version_info < (3, 7)) + or (not is_cibuildwheel and sys.version_info < (3, 9)) + ): + q = '\\"' + else: + q = '"' + return q + arg + q if __name__ == "__main__": @@ -180,5 +189,8 @@ if __name__ == "__main__": ) setup( + # name and version for building python 3.6 wheel + name="sqlcipher3", + version="0.5.2", ext_modules=[module], )