Re: [PyQt] dip Snapshot Support for Python v2.6 and v2.7
On Mon, Jul 26, 2010 at 9:34 AM, Darren Dale dsdal...@gmail.com wrote: On Mon, Jul 26, 2010 at 4:00 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Sun, 25 Jul 2010 17:30:28 -0400, Darren Dale dsdal...@gmail.com wrote: On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson p...@riverbankcomputing.com wrote: The current dip snapshots now support Python v2.6 and v2.7 as well as Python v3. The API should be identical for all versions of Python. I had some trouble enabling MQ (hg qpush -a returned no patches in series), so I installed the snapshot for py26. Make sure you use qclone rather than clone. Oh, sorry. You were right, I overlooked qclone. Could I ask for clarification on how py26/py27 users should track the development branch? What I have been doing is: hg qclone http://www.riverbankcomputing.com/hg/dip hg qpush -a # the next day, attempt to sync: hg qpop -a hg pull hg update hg qpush -a # at this point, I often get error messages, like: applying dip.model.syntax applying dip.model.super applying dip.model.comprehensions applying dip.model.sipapi applying dip.model.misc applying dip.model.tests applying dip.ui.syntax unable to find 'dip/ui/robot.py' for patching 4 out of 4 hunks FAILED -- saving rejects to file dip/ui/robot.py.rej patching file dip/ui/toolkits/qt/qlistwidget_editor.py Hunk #1 FAILED at 342 1 out of 1 hunks FAILED -- saving rejects to file dip/ui/toolkits/qt/qlistwidget_editor.py.rej patching file dip/ui/toolkits/qt/qtablewidget_editor.py Hunk #1 FAILED at 414 1 out of 1 hunks FAILED -- saving rejects to file dip/ui/toolkits/qt/qtablewidget_editor.py.rej patch failed, unable to continue (try -v) patch failed, rejects left in working dir errors during apply, please fix and refresh dip.ui.syntax I don't know how to recover from these errors, so I end up deleting my clone and making a new one. Thanks, Darren ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] dip Snapshot Support for Python v2.6 and v2.7
On Mon, 13 Sep 2010 08:59:42 -0400, Darren Dale dsdal...@gmail.com wrote: On Mon, Jul 26, 2010 at 9:34 AM, Darren Dale dsdal...@gmail.com wrote: On Mon, Jul 26, 2010 at 4:00 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Sun, 25 Jul 2010 17:30:28 -0400, Darren Dale dsdal...@gmail.com wrote: On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson p...@riverbankcomputing.com wrote: The current dip snapshots now support Python v2.6 and v2.7 as well as Python v3. The API should be identical for all versions of Python. I had some trouble enabling MQ (hg qpush -a returned no patches in series), so I installed the snapshot for py26. Make sure you use qclone rather than clone. Oh, sorry. You were right, I overlooked qclone. Could I ask for clarification on how py26/py27 users should track the development branch? What I have been doing is: hg qclone http://www.riverbankcomputing.com/hg/dip hg qpush -a # the next day, attempt to sync: hg qpop -a hg pull hg update hg qpush -a # at this point, I often get error messages, like: applying dip.model.syntax applying dip.model.super applying dip.model.comprehensions applying dip.model.sipapi applying dip.model.misc applying dip.model.tests applying dip.ui.syntax unable to find 'dip/ui/robot.py' for patching 4 out of 4 hunks FAILED -- saving rejects to file dip/ui/robot.py.rej patching file dip/ui/toolkits/qt/qlistwidget_editor.py Hunk #1 FAILED at 342 1 out of 1 hunks FAILED -- saving rejects to file dip/ui/toolkits/qt/qlistwidget_editor.py.rej patching file dip/ui/toolkits/qt/qtablewidget_editor.py Hunk #1 FAILED at 414 1 out of 1 hunks FAILED -- saving rejects to file dip/ui/toolkits/qt/qtablewidget_editor.py.rej patch failed, unable to continue (try -v) patch failed, rejects left in working dir errors during apply, please fix and refresh dip.ui.syntax I don't know how to recover from these errors, so I end up deleting my clone and making a new one. Mercurial Queues work by keeping the patches in a separate repository within the main repository. The 'q' commands operate on the patch repository as well as the main one. For some reason there is no qpull command that will pull both repositories. The step you are missing is... hg -R .hg/patches pull ...somewhere between the qpop and the qpush. Alternatively, the snapshots are always up to date. (I'm slowly moving away from overnight snapshots). They are generated when I do a push to the main repository. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] dip Snapshot Support for Python v2.6 and v2.7
On Sun, 25 Jul 2010 17:30:28 -0400, Darren Dale dsdal...@gmail.com wrote: On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson p...@riverbankcomputing.com wrote: The current dip snapshots now support Python v2.6 and v2.7 as well as Python v3. The API should be identical for all versions of Python. I had some trouble enabling MQ (hg qpush -a returned no patches in series), so I installed the snapshot for py26. Make sure you use qclone rather than clone. I ran dip-builder, and when I tried to make a distutils distribution, I got the following: File /home/darren/.local/lib/python2.6/site-packages/dip/ui/toolkits/qt/qlistwidget_editor.py, line 234 rows = list({index.row() for index in indexes}) ^ SyntaxError: invalid syntax I don't think set comprehensions are available in python2. Should be fixed now. Note that dip snapshots are updated on a push rather than being done overnight. Other packages will be moved to this behaviour over time. Thanks, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] dip Snapshot Support for Python v2.6 and v2.7
On Mon, Jul 26, 2010 at 4:00 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Sun, 25 Jul 2010 17:30:28 -0400, Darren Dale dsdal...@gmail.com wrote: On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson p...@riverbankcomputing.com wrote: The current dip snapshots now support Python v2.6 and v2.7 as well as Python v3. The API should be identical for all versions of Python. I had some trouble enabling MQ (hg qpush -a returned no patches in series), so I installed the snapshot for py26. Make sure you use qclone rather than clone. Oh, sorry. You were right, I overlooked qclone. I ran dip-builder, and when I tried to make a distutils distribution, I got the following: File /home/darren/.local/lib/python2.6/site-packages/dip/ui/toolkits/qt/qlistwidget_editor.py, line 234 rows = list({index.row() for index in indexes}) ^ SyntaxError: invalid syntax I don't think set comprehensions are available in python2. Should be fixed now. It is. Thanks. Darren ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] dip Snapshot Support for Python v2.6 and v2.7
On Sat, Jul 24, 2010 at 2:26 PM, Phil Thompson p...@riverbankcomputing.com wrote: The current dip snapshots now support Python v2.6 and v2.7 as well as Python v3. The API should be identical for all versions of Python. I had some trouble enabling MQ (hg qpush -a returned no patches in series), so I installed the snapshot for py26. I ran dip-builder, and when I tried to make a distutils distribution, I got the following: File /home/darren/.local/lib/python2.6/site-packages/dip/ui/toolkits/qt/qlistwidget_editor.py, line 234 rows = list({index.row() for index in indexes}) ^ SyntaxError: invalid syntax I don't think set comprehensions are available in python2. Darren ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] dip Snapshot Support for Python v2.6 and v2.7
The current dip snapshots now support Python v2.6 and v2.7 as well as Python v3. The API should be identical for all versions of Python. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt