We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe939c commit fccc5b3Copy full SHA for fccc5b3
setup.py
@@ -5,13 +5,20 @@
5
6
import os, sys
7
from os import chdir, getcwd
8
-from os.path import abspath, dirname, split, samefile
+from os.path import abspath, dirname, split
9
import shlex, glob
10
from subprocess import check_output
11
12
import re
13
import argparse
14
15
+if sys.platform == 'win32' and sys.version_info[0] < 3:
16
+ def samefile(path1, path2):
17
+ return (os.path.normcase(os.path.normpath(path1)) ==
18
+ os.path.normcase(os.path.normpath(path2)))
19
+else:
20
+ from os.path import samefile
21
+
22
# Pre-parse and remove the '--target' argument from sys.argv since we
23
# need it here already.
24
parser = argparse.ArgumentParser()
0 commit comments