We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e86c31 commit 6d50f2cCopy full SHA for 6d50f2c
constructor/install.py
@@ -45,6 +45,7 @@
45
LINK_SOFT: 'soft-link',
46
LINK_COPY: 'copy',
47
}
48
+SPECIAL_ASCII = '$!&\%^|{}[]<>~`"\':;?@*#'
49
50
# these may be changed in main()
51
ROOT_PREFIX = sys.prefix
@@ -507,8 +508,17 @@ def main2():
507
508
post_extract()
509
510
511
+def warn_on_special_chrs():
512
+ if on_win:
513
+ return
514
+ for c in SPECIAL_ASCII:
515
+ if c in ROOT_PREFIX:
516
+ print("WARNING: found '%s' in install prefix." % c)
517
+
518
519
if __name__ == '__main__':
520
if IDISTS:
521
main()
522
+ warn_on_special_chrs()
523
else: # common usecase
524
main2()
0 commit comments