mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure build is run before publish proceeds
This commit is contained in:
parent
b95efa171f
commit
f6b8381018
@ -149,6 +149,10 @@ class Publish(Command):
|
||||
def pre_sub_commands(self, opts):
|
||||
require_git_master()
|
||||
require_clean_git()
|
||||
if 'PUBLISH_BUILD_DONE' not in os.environ:
|
||||
subprocess.check_call([sys.executable, 'setup.py', 'build'])
|
||||
os.environ['PUBLISH_BUILD_DONE'] = '1'
|
||||
os.execl(os.path.abspath('setup.py'), './setup.py', 'publish')
|
||||
|
||||
|
||||
class PublishBetas(Command):
|
||||
|
Loading…
x
Reference in New Issue
Block a user