IGN:Build linux egg in a VM

This commit is contained in:
Kovid Goyal 2008-06-05 16:12:44 -07:00
parent 77d65631a9
commit 0b592ab2d5
4 changed files with 18 additions and 3 deletions

View File

@ -40,3 +40,7 @@ pictureflow :
pot :
cd src/calibre/translations && ${PYTHON} __init__.py pot
egg : all
${PYTHON} setup.py register bdist_egg --exclude-source-files upload

View File

@ -35,7 +35,7 @@ class LibraryDelegate(QItemDelegate):
gradient = QLinearGradient(0, 0, 0, 100)
gradient.setColorAt(0.0, self.COLOR)
gradient.setColorAt(1.0, self.COLOR)
self. brush = QBrush(gradient)
self.brush = QBrush(gradient)
self.factor = self.SIZE/100.
def sizeHint(self, option, index):

View File

@ -171,4 +171,4 @@ def main():
if __name__ == '__main__':
sys.exit(main())
from calibre.utils.single_qt_application import SingleApplication

View File

@ -127,6 +127,17 @@ def upload_tarball():
check_call('ssh divok rm -f %s/calibre-\*.tar.bz2'%DOWNLOADS)
check_call('scp dist/calibre-*.tar.bz2 divok:%s/'%DOWNLOADS)
def pypi():
vm = '/vmware/linux/libprs500-gentoo.vmx'
vmware = ('vmware', '-q', '-x', '-n', vm)
subprocess.Popen(vmware)
print 'Waiting for linux to boot up...'
time.sleep(60)
check_call('scp ~/.pypirc linux:')
check_call('ssh linux make -C /mnt/hgfs/giskard/work/calibre egg')
check_call('ssh linux rm -f ~/.pypirc')
check_call('ssh linux sudo poweroff')
def main():
upload = len(sys.argv) < 2
shutil.rmtree('build')
@ -144,7 +155,7 @@ def main():
print 'Uploading installers...'
upload_installers()
print 'Uploading to PyPI'
check_call('''python setup.py register bdist_egg --exclude-source-files upload''')
pypi()
upload_tarball()
upload_docs()
upload_user_manual()