Use separate bypy build cache for the Qt 6 branch

This commit is contained in:
Kovid Goyal 2021-11-22 11:21:15 +05:30
parent e99ab7e002
commit 66dd933fad
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -3,6 +3,7 @@
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net> # License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
import os
import subprocess import subprocess
import sys import sys
@ -19,6 +20,9 @@ class To6(Command):
def run(self, opts): def run(self, opts):
self.ccall('git', 'switch', '-') self.ccall('git', 'switch', '-')
os.rename('bypy/b/other-b', 'bypy/c')
os.rename('bypy/b', 'bypy/c/other-b')
os.rename('bypy/c', 'bypy/b')
self.ccall(sys.executable, 'setup.py', 'build', '--clean') self.ccall(sys.executable, 'setup.py', 'build', '--clean')
self.ccall(sys.executable, 'setup.py', 'build') self.ccall(sys.executable, 'setup.py', 'build')
self.ccall(sys.executable, 'setup.py', 'gui', '--clean') self.ccall(sys.executable, 'setup.py', 'gui', '--clean')