Browse Source

Only include custom stdint.h on python < 3.6.

Jelmer Vernooij 8 năm trước cách đây
mục cha
commit
8cbf812ad4
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      setup.py

+ 2 - 1
setup.py

@@ -15,7 +15,8 @@ dulwich_version_string = '0.17.4'
 
 include_dirs = []
 # Windows MSVC support
-if sys.platform == 'win32':
+if sys.platform == 'win32' and sys.version_info[:2] < (3, 6):
+    # Include dulwich/ for fallback stdint.h
     include_dirs.append('dulwich')