##// END OF EJS Templates
use `pathlib.Path`, remove unused aliases
BaoGiang HoangVu -
Show More
@@ -19,6 +19,7 b' requires utilities which are not available under Windows."""'
19 19
20 20 import os
21 21 import sys
22 from pathlib import Path
22 23
23 24 # **Python version check**
24 25 #
@@ -61,7 +62,8 b' Python {py} detected.'
61 62
62 63 # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
63 64 # update it when the contents of directories change.
64 if os.path.exists('MANIFEST'): os.remove('MANIFEST')
65 if Path("MANIFEST").exists():
66 Path("MANIFEST").unlink()
65 67
66 68 from distutils.core import setup
67 69
@@ -83,9 +85,6 b' from setupbase import ('
83 85 unsymlink,
84 86 )
85 87
86 isfile = os.path.isfile
87 pjoin = os.path.join
88
89 88 #-------------------------------------------------------------------------------
90 89 # Handle OS specific things
91 90 #-------------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now