[issue36464] Python 2.7 build install fails intermittently with -j on MacOS

2019-03-28 Thread Paul Smith
Paul Smith added the comment: I've tried on both MacOS 10.12 and 10.14. I'm using GNU make 4.2.1 (built myself, not the one that comes with Xcode). I have not tried Python3 builds. I agree with you that -jN probably has little impact on the install step, but the build infrastructure I'm

[issue36464] Python 2.7 build install fails intermittently with -j on MacOS

2019-03-28 Thread Paul Smith
New submission from Paul Smith : Maybe no one cares anymore, but I've discovered that if I run make with -j the installation sometimes fails with this error: install: mkdir /Users/build/.../dist/python/x86_64-darwin/lib: File exists I believe it's because the targets altbininstall

Re: Finding .so files without setting LD_LIBRARY_PATH

2016-05-12 Thread Paul Smith
On Thu, 2016-05-12 at 07:55 +0300, Jussi Piitulainen wrote: > eryk sun writes: > > > On Wed, May 11, 2016 at 10:39 PM, Paul Smith wrote: > > > Hi all. I have a locally-built version of Python (2.7.11) that I'm > > > copying around to different systems, running all d

Finding .so files without setting LD_LIBRARY_PATH

2016-05-11 Thread Paul Smith
Hi all. I have a locally-built version of Python (2.7.11) that I'm copying around to different systems, running all different versions of GNU/Linux. Because I need this to work across systems I'm bundling important .so's with my Python installation (libcrypto, libssl, libreadline, libgmp) which

Re: Logger module in python

2013-12-17 Thread Paul Smith
On Wed, 2013-12-18 at 03:27 +, Mark Lawrence wrote: On 18/12/2013 03:22, smilesonisa...@gmail.com wrote: Hi, I am a newbie in python. I am looking for a existing module which I can import in my program to log the objects to a file? I know there is a module Data::Dumper in perl which

Re: Experiences/guidance on teaching Python as a first programming language

2013-12-17 Thread Paul Smith
On Wed, 2013-12-18 at 01:33 +, Steven D'Aprano wrote: And What does 'implementation-specific undefined behaviour' actually mean in practice?, another common question when dealing with C. Only asked by people who haven't had it explained. There's undefined behavior, and there's

Re: Sharing Python installation between architectures

2013-11-17 Thread Paul Smith
On Sat, 2013-11-16 at 19:28 -0500, Paul Smith wrote: On Fri, 2013-11-15 at 18:00 -0500, Paul Smith wrote: By this I mean, basically, multiple architectures (Linux, Solaris, MacOSX, even Windows) sharing the same $prefix/lib/python2.7 directory. The large majority of the contents

Re: Sharing Python installation between architectures

2013-11-17 Thread Paul Smith
On Sun, 2013-11-17 at 10:46 -0500, Paul Smith wrote: Unfortunately, if you set PYTHONHOME then it's used for both $PREFIX and $EXECPREFIX without any path probing whatsoever, so PYTHONHOME is unusable with an installation where you've used different values for --prefix and --exec-prefix during

Re: Sharing Python installation between architectures

2013-11-16 Thread Paul Smith
On Fri, 2013-11-15 at 18:00 -0500, Paul Smith wrote: By this I mean, basically, multiple architectures (Linux, Solaris, MacOSX, even Windows) sharing the same $prefix/lib/python2.7 directory. The large majority of the contents there are completely portable across architectures (aren't

grammar (was Re: Automation)

2013-11-16 Thread Paul Smith
On Sat, 2013-11-16 at 10:11 -0500, Roy Smith wrote: In article mailman.2714.1384611545.18130.python-l...@python.org, William Ray Wing w...@mac.com wrote: And my personal peeve - using it's (contraction) when its (possessive) should have been used; occasionally vice-versa. And one of

Re: python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-15 Thread Paul Smith
On Thu, 2013-11-14 at 10:36 -0800, Ned Deily wrote: In article 1384442536.3496.532.camel@pdsdesk, Paul Smith p...@mad-scientist.net wrote: [...] By relocatable I mean runnable from any location; i.e., not fixed. I have a wrapper around the Python executable that can compute the correct

Sharing Python installation between architectures

2013-11-15 Thread Paul Smith
One thing I always liked about Perl was the way you can create a single installation directory which can be shared between archictures. Say what you will about the language: the Porters have an enormous amount of experience and expertise producing portable and flexible interpreter installations.

Re: python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-14 Thread Paul Smith
On Wed, 2013-11-13 at 23:06 -0800, Ned Deily wrote: On Nov 13, 2013, at 17:24 , Paul Smith p...@mad-scientist.net wrote: I'm discovering that this is tricky. I don't want to bring OS wars into it, but this kind of thing is so simple and just works on GNU/Linux. I guess I've been spoiled

python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-13 Thread Paul Smith
Hi all. I need to build my own version of Python on a MacOSX system, and I can't seem to do it successfully. I need to build it with a particular location, etc. and so I can't use Homebrew or whatever: I need to compile it myself from the source tarball. I did look through the Homebrew recipe

Re: python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-13 Thread Paul Smith
Thanks for the response Ned! On Wed, 2013-11-13 at 14:40 -0800, Ned Deily wrote: There shouldn't be any problems with what you are trying to do. It works for me with Python 2.7.6 and pycrypto-2.6.1. Some suggestions: - Avoid --enable-shared on OS X at least initially. There are too many

Re: python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-13 Thread Paul Smith
On Wed, 2013-11-13 at 16:00 -0800, Ned Deily wrote: The reason I've set PYTHONHOME is ultimately I need this installation to be relocatable. It's going to be shared across lots of different systems and they'll have the ability to copy it wherever they want. That could be problematic. You

[issue9173] logger statement not guarded in shutil._make_tarball

2010-07-05 Thread Paul Smith
New submission from Paul Smith paulsm...@pobox.com: A called to logger.info() in shutil._make_tarball is not guarded against the logger being None, and therefore raises an AttributeError if that is the case. -- components: Library (Lib) files: shutil_logger_py27.patch keywords: patch

[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-04-04 Thread Paul Smith
Changes by Paul Smith paulsm...@pobox.com: -- nosy: +paulsmith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8154 ___ ___ Python-bugs-list mailing

[issue1002] Patch to rename HTMLParser module to lower_case

2007-08-24 Thread Paul Smith
Paul Smith added the comment: I am participating in the Python Sprint here at Google, and was just going through the Py3k Sprint Tasks spreadsheet, one of them being to rename standard library modules which use CamelCase to lower_and_underscore, the more modern naming

[issue1002] Patch to rename HTMLParser module to lower_case

2007-08-23 Thread Paul Smith
New submission from Paul Smith: HTMLParser is renamed to html_parser. -- components: Library (Lib) files: rename-html-parser.diff messages: 55200 nosy: paulsmith severity: normal status: open title: Patch to rename HTMLParser module to lower_case versions: Python 2.6

[issue1002] Patch to rename HTMLParser module to lower_case

2007-08-23 Thread Paul Smith
Paul Smith added the comment: Patch to 2to3 fix_imports. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1002 __ rename-html-parser-fix-imports.diff Description: Binary data

[issue1005] Patches to rename Queue module to queue

2007-08-23 Thread Paul Smith
New submission from Paul Smith: Renamed Lib/Queue.py to Lib/queue.py. -- components: Library (Lib) files: rename-queue.diff messages: 55230 nosy: paulsmith severity: normal status: open title: Patches to rename Queue module to queue versions: Python 2.6

[issue1005] Patches to rename Queue module to queue

2007-08-23 Thread Paul Smith
Paul Smith added the comment: Patches 2to3/fixes/fix_imports.py. Note that patch to Lib doesn't include `svn mv Lib/Queue.py Lib/queue.py` (issue reporter without commit privileges). __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1005

Can sqlite read gzipped databases?

2007-03-20 Thread Paul Smith
Hi, I'd like to read a series of sqlite database files that have already been gzipped and was wondering if this can be done on the fly. In other words, can I avoid explicitly unzipping the file into another file, but instead get an SQL connection to the zip file either directly (can't see an