mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-12-03 11:45:01 -05:00
30 lines
834 B
Python
30 lines
834 B
Python
#!/usr/bin/env python
|
|
# vim:fileencoding=utf-8
|
|
# License: GPL v3 Copyright: 2019, Kovid Goyal <kovid at kovidgoyal.net>
|
|
|
|
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
from setup import Command
|
|
|
|
|
|
class To6(Command):
|
|
|
|
description = 'Toggle between the Qt6 and master branches building everything needed'
|
|
|
|
def ccall(self, *a):
|
|
self.info(*a)
|
|
subprocess.check_call(a)
|
|
|
|
def run(self, opts):
|
|
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')
|
|
self.ccall(sys.executable, 'setup.py', 'gui', '--clean')
|
|
self.ccall(sys.executable, 'setup.py', 'gui', '--summary')
|