Re: [Pythonmac-SIG] Python 2.6/3.1 on Mac - default arch is i386?
On 16/08/2010 2:52 PM, Kevin Walzer wrote: On 8/16/10 1:27 PM, Sridhar Ratnakumar wrote: An ideal fix to this problem, according to Hobbs, is to patch _tkinter.c to use the tcl stubs mechanism in order to support higher tcl versions during runtime (eg: 8.6). I had seen discussion of this; has ActiveState decided not to include such a patch in ActivePython? I've done some initial work on that patch, but it isn't complete. Every time I look at the code, I have to fight the urge to rewrite more than is necessary. Jeff ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
[Pythonmac-SIG] py2app and related packages on bitbucket
Hi, I've converted the repositories for py2app and related packages to mercurial and posted them on bitbucket. The new home pages are: py2app: http://bitbucket.org/ronaldoussoren/py2app macholib: http://bitbucket.org/ronaldoussoren/macholib modulegraph: http://bitbucket.org/ronaldoussoren/modulegraph altgraph: http://bitbucket.org/ronaldoussoren/altgraph I have disabled the wiki for now, but did enable the issue tracker. The pyobjc repository will also be converted to mercurial, but that's a more complicated process due to the more complicated history in that repository. Ronald smime.p7s Description: S/MIME cryptographic signature ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] I published a couple of improvements to py2app
On 20 Aug, 2010, at 12:44, Virgil Dupras wrote: I reproduced the problem and created a package reproducing it. I thought it would be hard, but it's really easy: I have a main script and a package 'pkg' containing submodules 'a' and 'b'. 'b' does nothing, 'a' import 'b' with 'from . import b'. the mainscript does 'from pkg import a'. Modulefinder finds both 'a' and 'b'. Modulegraph only finds 'a'. I included a 'run.py' script in the package that runs them both and print the report: I've committed a fix for this to the mercurial repo, including a testcase based on your example. Thanks for finding a simple way to reproduce the problem, Ronald smime.p7s Description: S/MIME cryptographic signature ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
[Pythonmac-SIG] How do you tell the system which version to use ?
I find that I have at least 3 versions of Python on my system. 2 under /System/Library/Frameworks/Python.framework/Versions (2.3 and 2.5) and one under /Library/Frameworks/Python.framework/Versions (2.7) Going from Terminal, I get 2.7 Running a script in Scribus, I get 2.3 I found info that says the /System/Library/Frameworks are part of the OS installation and that it should not be messed with. OK. But how do I get everything to use 2.7 ? Thanks. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] A script for Scribus that won't run on my Mac
On Sat, Aug 21, 2010, Dan White wrote: def drawRulesGrid(pageSide): Draws rules on the page lineSpace = (LINE_LAST_Y - LINE_FIRST_Y) / 30 if pageSide == 'right': StartLines = (R_LINE_X + (C * LINE_X_OFFSET) for C in range(COLUMNS)) BigLines = [0, 10, 20, 25, 30] elif pageSide == 'left': StartLines = (L_LINE_X + (C * LINE_X_OFFSET) for C in range(COLUMNS)) BigLines = [0, 10, 20, 30] for j in StartLines: StartLineX, StartLineY = j, LINE_FIRST_Y for i in range(31): Line = createLine(StartLineX, StartLineY, StartLineX+LINE_LENGHT, StartLineY) if i in BigLines: setLineWidth(BIG_LINE_WIDTH, Line) else: setLineWidth(THIN_LINE_WIDTH, Line) StartLineY += lineSpace - Traceback (most recent call last): File , line 8, in ? File SamAgenda.py, line 221 StartLines = (R_LINE_X + (C * LINE_X_OFFSET) for C in range(COLUMNS)) ^ SyntaxError: invalid syntax Based on your later message, you presumably figured out that this was not, in fact, Python 2.7 as claimed. Just posting this for future reference. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ ...if I were on life-support, I'd rather have it run by a Gameboy than a Windows box. --Cliff Wells ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] How do you tell the system which version to use ?
Dan White wrote: I find that I have at least 3 versions of Python on my system. 2 under /System/Library/Frameworks/Python.framework/Versions (2.3 and 2.5) and one under /Library/Frameworks/Python.framework/Versions (2.7) Going from Terminal, I get 2.7 Running a script in Scribus, I get 2.3 I found info that says the /System/Library/Frameworks are part of the OS installation and that it should not be messed with. OK. But how do I get everything to use 2.7 ? you probably can't with one way ! using the Terminal, which is used depends on your $PATH variable, which is set up in your .bash_profile file, which I think gets auto-modified by the python installer. As for Scribus, you'll have to look at the Scribus docs to see how you can set which interpreter it uses. I don't know anything about Python in Scribus, but off the top of my head, I'd expect that which version of python it used would be set at build time. Python 2.3 was delivered with OS-X 10.4 -- perhaps your scribus binary was set up to use that? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG