xwin does not need ole header case fixes anymore

This commit is contained in:
Kovid Goyal 2023-07-30 18:47:49 +05:30
parent 472c1f0a83
commit 088954ae65
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2,7 +2,6 @@
# License: GPLv3 Copyright: 2023, Kovid Goyal <kovid at kovidgoyal.net> # License: GPLv3 Copyright: 2023, Kovid Goyal <kovid at kovidgoyal.net>
import os
import shutil import shutil
from setup import Command from setup import Command
@ -22,8 +21,5 @@ class XWin(Command):
except FileNotFoundError: except FileNotFoundError:
raise SystemExit('xwin not found install it from https://github.com/Jake-Shadle/xwin/releases') raise SystemExit('xwin not found install it from https://github.com/Jake-Shadle/xwin/releases')
subprocess.check_call(cmd + ['splat', '--output', output_dir]) subprocess.check_call(cmd + ['splat', '--output', output_dir])
base = f'{output_dir}/sdk/include/um'
for casefix in 'Ole2.h OleCtl.h OAIdl.h OCIdl.h'.split():
os.link(f'{base}/{casefix.lower()}', f'{base}/{casefix}')
shutil.rmtree(f'{cache_dir}/dl') shutil.rmtree(f'{cache_dir}/dl')
shutil.rmtree(f'{cache_dir}/unpack') shutil.rmtree(f'{cache_dir}/unpack')