Преглед на файлове

Only include custom stdint.h on python < 3.6.

Jelmer Vernooij преди 8 години
родител
ревизия
8cbf812ad4
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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')