diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2019-10-04 18:53:51 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-10-05 14:01:58 +0000 |
commit | 981c059fec195eacdf536a439fb2270a2747abf2 (patch) | |
tree | 2f4fd632ecc53fb831c7eb7ac146ba0cdc0df406 /setup.py | |
parent | 28962d865f5f4f8e0cf5ba56d1660c06c65e9cff (diff) | |
download | pygobject-981c059fec195eacdf536a439fb2270a2747abf2.tar.gz |
Drop Python 2 support on Windows
Fixes #363
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1111,6 +1111,9 @@ class build_ext(du_build_ext): add_ext_compiler_flags(gi_cairo_ext, compiler) def run(self): + if os.name == "nt" and sys.version_info[0] == 2: + raise SystemExit("Python 2 on Windows no longer supported since 3.35. Use Python 3 instead.") + self._write_config_h() self._setup_extensions() du_build_ext.run(self) |