Sfoglia il codice sorgente

Only include custom stdint.h on python < 3.6.

Jelmer Vernooij 8 anni fa
parent
commit
8cbf812ad4
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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')