Re: [Python-Dev] RELEASED Python 2.6.2
On 16 Apr, 2009, at 20:58, Russell Owen wrote: I installed the Mac binary on my Intel 10.5.6 system and it works, except it still uses Apple's system Tcl/Tk 8.4.7 instead of my ActiveState 8.4.19 (which is in /Library/Frameworks where one would expect). That's very string. I had ActiveState 8.4 installed (whatever was current about a month ago). Just out of curiosity: which 3rd party Tcl/Tk did you have installed when you made the installer? Perhaps if it was 8.5 that would explain it. If so I may try updating my Tcl/Tk -- I've been wanting some of the bug fixes in 8.5 anyway. Tcl 8.5 won't happen in 2.6, and might not happen in 2.7 either. Tkinter needs to work with the system version of Tcl, which is some version of 8.4, Tkinter will not work when the major release of Tcl is different than during the compile. That makes it rather hard to support both 8.4 and 8.5 in the same installer. Ronald -- Russell On Apr 16, 2009, at 5:35 AM, Ronald Oussoren wrote: On 15 Apr, 2009, at 22:47, Russell E. Owen wrote: Thank you for 2.6.2. I see the Mac binary installer isn't out yet (at least it is not listed on the downloads page). Any chance that it will be compatible with 3rd party Tcl/Tk? The Mac installer is late because I missed the pre-announcement of the 2.6.2 tag. I sent the installer to Barry earlier today. The installer was build using a 3th-party installation of Tcl/Tk. Ronald smime.p7s Description: S/MIME cryptographic signature -- http://mail.python.org/mailman/listinfo/python-list
Re: [Python-Dev] RELEASED Python 2.6.2
On 15 Apr, 2009, at 22:47, Russell E. Owen wrote: Thank you for 2.6.2. I see the Mac binary installer isn't out yet (at least it is not listed on the downloads page). Any chance that it will be compatible with 3rd party Tcl/Tk? The Mac installer is late because I missed the pre-announcement of the 2.6.2 tag. I sent the installer to Barry earlier today. The installer was build using a 3th-party installation of Tcl/Tk. Ronald smime.p7s Description: S/MIME cryptographic signature -- http://mail.python.org/mailman/listinfo/python-list
Re: [Python-Dev] RELEASED Python 3.0.1
On 14 Feb, 2009, at 9:55, Martin v. Löwis wrote: Any chance of getting a Mac installer for this one? Chances are non-zero, yes. I had hoped to build one last night, but got home way later than I had planned. The installer is building as I type this. Ronald smime.p7s Description: S/MIME cryptographic signature -- http://mail.python.org/mailman/listinfo/python-list
Re: [python-nl] Compile python extension
On Wednesday, October 11, 2006, at 02:43PM, Martijn de Munnik <[EMAIL PROTECTED]> wrote: >Hi, > >I'm trying to build/install pysqlite on a Solaris 10 platform. I've got >Sun Studio 11 on a AMD 64 platform and got this error. I'm a python newbie >and just want to install trac. I've got ActiveState python: This seems to be a bug in distutils, triggered by the %-signs in your CFLAGS. The easiest way to work around this is to change the CFLAGS and CXXFLAGS in your environment, just remove the options containing %-signs. Those seem to be related to optimization and I don't think those will affect the performance of pysqlite very much. A more permanent fix is change /opt/python/lib/python2.4/distutils/spawn.py" line 122, insert "%s" as the first argument of the call to log.info. This might not be the only place that requires changes. Ronald P.S. please file a bug at http://www.sf.net/projects/python to ensure that this will get fixed in a future release of python. > >ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on >Python 2.4.3 (#1, Apr 3 2006, 18:07:58) [C] on sunos5 >Type "help", "copyright", "credits" or "license" for more information. > >And sqlite build with the following options ./configure >--prefix=/opt/64/sqlite --enable-threadsafe --disable-tcl > >my environment looks like this: >CC=cc >CFLAGS=-xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all -xlibmil >-xlibmopt -xtarget=opteron -xarch=amd64 -xregs=no%frameptr >CXX=CC >CXXFLAGS=-xO3 -mt -fsimple=1 -ftrap=%none -nofstore -xbuiltin=%all >-xlibmil -xlibmopt -xtarget=opteron -xarch=amd64 -xregs=no%frameptr >LDFLAGS=-xtarget=opteron -xarch=amd64 > >and setyp.cfg looks like this >[build_ext] >define= >include_dirs=/opt/sqlite/include >library_dirs=/opt/sqlite/lib >libraries=sqlite3 > >/opt/sqlite is a symlink to /opt/64/sqlite > >and finally the build command: > >% python setup.py build >running build >running build_py >running build_ext >building 'pysqlite2._sqlite' extension >Traceback (most recent call last): > File "setup.py", line 159, in ? >main() > File "setup.py", line 156, in main >setup(**get_setup_args()) > File "/opt/python/lib/python2.4/distutils/core.py", line 149, in setup >dist.run_commands() > File "/opt/python/lib/python2.4/distutils/dist.py", line 946, in >run_commands >self.run_command(cmd) > File "/opt/python/lib/python2.4/distutils/dist.py", line 966, in >run_command >cmd_obj.run() > File "/opt/python/lib/python2.4/distutils/command/build.py", line 112, >in run >self.run_command(cmd_name) > File "/opt/python/lib/python2.4/distutils/cmd.py", line 333, in run_command >self.distribution.run_command(command) > File "/opt/python/lib/python2.4/distutils/dist.py", line 966, in >run_command >cmd_obj.run() > File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line >279, in run >self.build_extensions() > File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line >405, in build_extensions >self.build_extension(ext) > File "/opt/python/lib/python2.4/distutils/command/build_ext.py", line >470, in build_extension >depends=ext.depends) > File "/opt/python/lib/python2.4/distutils/ccompiler.py", line 699, in >compile >self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) > File "/opt/python/lib/python2.4/distutils/unixccompiler.py", line 112, >in _compile >self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + > File "/opt/python/lib/python2.4/distutils/ccompiler.py", line 1040, in >spawn >spawn (cmd, dry_run=self.dry_run) > File "/opt/python/lib/python2.4/distutils/spawn.py", line 37, in spawn >_spawn_posix(cmd, search_path, dry_run=dry_run) > File "/opt/python/lib/python2.4/distutils/spawn.py", line 122, in >_spawn_posix >log.info(string.join(cmd, ' ')) > File "/opt/python/lib/python2.4/distutils/log.py", line 33, in info >self._log(INFO, msg, args) > File "/opt/python/lib/python2.4/distutils/log.py", line 23, in _log >print msg % args >TypeError: not enough arguments for format string > > >I've got the same issues with mysql and postgresql extensions, any ideas??? > >BTW anybody succesfully compiled python on Solaris using Sun Studio? > >thanks, > >Martijn > > >___ >Python-nl mailing list >Python-nl@python.org >http://mail.python.org/mailman/listinfo/python-nl > > -- http://mail.python.org/mailman/listinfo/python-list
Re: py2app on Mac OS X 10.3
On 31-dec-04, at 11:12, Austin wrote: """ Minimal setup.py example, run with: % python setup.py py2app """ from distutils.core import setup import py2app setup( app = ['main.py'], ) That is a sample code of wiki. I have a file 'main.py' and several sub-folders. After I execute 'pythonw setup.py py2exe', I see 2 folders, 'dist' & 'build' which is the same as py2exe. I open the 'dist' folder and see a file 'main'. Then I double-click the 'main' and appeared the error message. 'IOError:[Errno 2] No such file or directory: '/user/austin/Desktop/disk/main.app/Contents/Resources/log/eventlog.xml I feel so wildered because 'main.app' should be a file not a folder. It's an application bundle, which is a folder. All '.app'-s on OS X are folders, it is a neat way of bundling the application program and all data files it needs. I was wondering if some extra codes needed by setup.py Could anyone give me an advice? What is 'eventlog.xml' supposed to be? If you're going to write to it, it is in the wrong location. If it is a datafile that is used by your application you should mention it in the setup.py script (the data_files argument). Ronald -- http://mail.python.org/mailman/listinfo/python-list
ANN: pyobjc-1.2
PyObjC 1.2 is now available for download at http://pyobjc.sourceforge.net/ PyObjC is a bridge between Python and Objective-C. It allows full featured Cocoa applications to be written in pure Python. It is also easy to use other frameworks containing Objective-C class libraries from Python and to mix in Objective-C, C and C++ source. Python is a highly dynamic programming language with a shallow learning curve. It combines remarkable power with very clear syntax. The installer package includes a number of Xcode templates for easily creating new Cocoa-Python projects. PyObjC also supports full introspection of Objective-C classes and direct invocation of Objective-C APIs from the interactive interpreter. PyObjC requires Mac OS X 10.2 or later and Python 2.3 or later. PyObjC works both with the Apple provided Python installation in Mac OS X 10.3 (and later) and with MacPython 2.3. This release features several bugfixes, improved documentation as well as support for categories, easier customization and basic support for creating Interface Builder palettes. See the news file at http://pyobjc.sourceforge.net/NEWS-1.2.txt for more information. PyObjC is released with an open source license (MIT style). -- http://mail.python.org/mailman/listinfo/python-list
Re: PyQt on MAC OS X
On 14-dec-04, at 0:42, Michael McGarry wrote: Kevin, thanks that did the trick!!! One problem is my Window created in Qt appears underneath all others on the screen and focus never goes completely onto this window. Kind of weird. Any ideas? Did you use pythonw to start your script? If you use the normal interpreter (the one named python) you've run into an annoying feature of the MacOS X display system, pythonw can be used to circumvent that feature. Ronald -- http://mail.python.org/mailman/listinfo/python-list