[issue9637] docs do not say that urllib uses HTTP_PROXY

2010-08-20 Thread Kirikaza
Kirikaza added the comment: I missed the print statement in that example... So I attached the file with correct code. -- Added file: http://bugs.python.org/file18594/proxy.py ___ Python tracker ___

[issue9591] kqueue not reporting EOF under certain circumstances

2010-08-20 Thread Volodymyr Kostyrko
Volodymyr Kostyrko added the comment: Ok, I'll try to ask FreeBSD developers, too bad I'm not that familiar with C to write example other way than test if it's a system problem. -- nosy: -terry.reedy ___ Python tracker

[issue9618] IDLE shell ignores all but first statement

2010-08-20 Thread R. David Murray
R. David Murray added the comment: It seems to me that this bug should be closed as a duplicate of the original bug (#3559). It's the same bug, only the proposed solution is different, unless I'm missing something. -- nosy: +r.david.murray ___ Pyt

[issue7694] DeprecationWarning from build_ext needs stacklevel

2010-08-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9648] 2to3 doesn't convert "file" usage to an "open" equivalent

2010-08-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> duplicate status: open -> closed superseder: -> 2to3 does not convert __builtins__.file ___ Python tracker ___ _

[issue1011113] Make “install” find the buil d_base directory

2010-08-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2521] ABC caches should use weak refs

2010-08-20 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Thanks! :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue2521] ABC caches should use weak refs

2010-08-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: r84230 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-lis

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2010-08-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: r84229 -- nosy: +benjamin.peterson status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue9131] test_set_reprs in test_pprint is fragile

2010-08-20 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : Added file: http://bugs.python.org/file18593/issue9131.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9131] test_set_reprs in test_pprint is fragile

2010-08-20 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : Removed file: http://bugs.python.org/file18592/issue9131.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9131] test_set_reprs in test_pprint is fragile

2010-08-20 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: errr... ignore that first patch (now deleted) :-) -- Added file: http://bugs.python.org/file18592/issue9131.patch ___ Python tracker ___

[issue9131] test_set_reprs in test_pprint is fragile

2010-08-20 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : Removed file: http://bugs.python.org/file18591/issue9131.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9131] test_set_reprs in test_pprint is fragile

2010-08-20 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- keywords: +needs review, patch resolution: -> accepted stage: needs patch -> patch review Added file: http://bugs.python.org/file18591/issue9131.patch ___ Python tracker ___

[issue9131] test_set_reprs in test_pprint is fragile

2010-08-20 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Nevermind, I found it: @support.cpython_only I'll work on a patch to add the decorator and a comment about why the test is fragile. -- ___ Python tracker __

[issue9572] IOError in test_multiprocessing

2010-08-20 Thread Brett Cannon
Brett Cannon added the comment: I think what I need to do is greatly simplify the directory creation code in set_data and make it much more robust against potential race conditions against other Python processes. I think as long as I just stop trying to make a directory when it is found to ex

[issue7501] python -m unittest path_to_suite_function errors

2010-08-20 Thread James Westby
James Westby added the comment: Hi, I think this was misdiagnosed: from unittest.py in 2.6, loadTestFromName: elif hasattr(obj, '__call__'): test = obj() if isinstance(test, TestSuite): return test elif isinstance(test, TestCase):

[issue7694] DeprecationWarning from build_ext needs stacklevel

2010-08-20 Thread Éric Araujo
Éric Araujo added the comment: This change has been reverted in 2.7 and 3.x, I’ll check distutils2. Thank you. We should test that warnings stacklevels make sense; it’s on my todo list. -- assignee: tarek -> eric.araujo components: +Distutils2 -Distutils nosy: +eric.araujo title: Depre

[issue9620] Python 2.7 IDLE fails on OS X 10.6

2010-08-20 Thread beng umali
beng umali added the comment: apologies for the late reply. issue now resolved. thank you. -- ___ Python tracker ___ ___ Python-bugs-l

[issue1682403] Transform reST to styled text in bdist_wininst-produced installers

2010-08-20 Thread Éric Araujo
Éric Araujo added the comment: I added an item to the todo list of distutils2 so that the current behavior is documented: http://bitbucket.org/tarek/distutils2/wiki/Todo -- components: +Distutils2 -Distutils, Windows title: docutils clarification request for "rest" -> Transform reST to

[issue1589266] bdist_sunpkg distutils command

2010-08-20 Thread Éric Araujo
Éric Araujo added the comment: I suppose we have to reject this request. For distutils, it is too late, we don’t add new features. In distutils2, we have removed bdist_rpm and rejected bdist_deb (#1054967), with the rationale that OS-specific formats are best made by tools that are customize

[issue1011113] Make “install” find the buil d_base directory

2010-08-20 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. distutils does not get new features anymore. This gives us time to focus on distutils2, the next generation. Thanks to the configure command (#8254), the functionality you require will be easily supported in distutils2. I’ll get back to th

[issue1011113] distutils install with -b / --build-base

2010-08-20 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg114463 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1011113] distutils install with -b / --build-base

2010-08-20 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg113025 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1011113] distutils install with -b / --build-base

2010-08-20 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg113011 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1011113] distutils install with -b / --build-base

2010-08-20 Thread Éric Araujo
Éric Araujo added the comment: (Removing messages since Terry and I discussed distutils bugs triage in private email. Thank you Terry for your help.) -- ___ Python tracker __

[issue7546] msvc9compiler.py: add .asm extension

2010-08-20 Thread Éric Araujo
Éric Araujo added the comment: Could you add tests? There are helpers in distutils2.tests.support than deal with temporary files, and we use unittest2 which provides decorators to skip the tests on non-Windows. -- nosy: +eric.araujo versions: +Python 2.5, Python 2.6, Python 3.1 _

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-08-20 Thread Stefan Krah
Stefan Krah added the comment: I think you are closing too aggressively. Python 3.2a0 (py3k:81783, Jun 6 2010, 16:07:26) [GCC 4.1.3 20080623 (prerelease) (Ubuntu 4.1.2-23ubuntu3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mimetypes >>> mimety

[issue9654] merge PC/getpathp.c into Modules/getpath.c

2010-08-20 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : The file Modules/getpath.c computes sys.prefix and the initial sys.path. The Windows version uses its own copy of this file, with a lot of similarities, but also non-obvious differences. I propose to merge both files, this would ease maintenance and un

[issue9214] Most Set methods of KeysView and ItemsView do not work right

2010-08-20 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: The patch looks good to me, too. The new tests fail without the fix, and pass with the fix. -- assignee: stutzbach -> rhettinger stage: unit test needed -> patch review ___ Python tracker

[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-08-20 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Thank you for the patch. We should only iterate over the shorter set if the longer set is really a set and not just a sequence. PySequence_Contains may take O(n) time on a list, making the algorithm an expensive O(n**2) overall. I note that set_isdisjoint

[issue9653] New default argparse output to be added

2010-08-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> bethard nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9653] New default argparse output to be added

2010-08-20 Thread Tom Browder
New submission from Tom Browder : When I use the argparse module, and I enter my program name with NO arguments or options, I would like the argparser to output something like: Usage: [options] Use option '-h' for help. I haven't yet found how to do that in the argparse module source code, bu

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2010-08-20 Thread Stefan Behnel
Stefan Behnel added the comment: When I read the comments and exception texts in the function, it didn't occur to me that "char buffer" could have been used as a name for the old Py2 buffer interface. From the context, it totally makes sense to me that the function (which decodes a byte seque

[issue9652] Tidy argparse default output

2010-08-20 Thread Tom Browder
New submission from Tom Browder : I would like to be able to change argparse default strings so the first word is capitalized. In lieu of that, I propose the attached patch to 2.7 which changes them in the source code. -- components: Library (Lib) files: python-v2.7-argparser-patch.tx

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2010-08-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Stefan Behnel wrote: > > Stefan Behnel added the comment: > > Another updated patch with a readability fix (replacing the last one). While you're at it, you might as well remove references to the "char buffer" - there's no such thing in Python3 anymore.

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2010-08-20 Thread Stefan Behnel
Stefan Behnel added the comment: Another updated patch with a readability fix (replacing the last one). -- Added file: http://bugs.python.org/file18589/unicodeobject-PyUnicode_FromEncodedObject-buffer-refactored.patch ___ Python tracker

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2010-08-20 Thread Stefan Behnel
Changes by Stefan Behnel : Removed file: http://bugs.python.org/file18588/unicodeobject-PyUnicode_FromEncodedObject-buffer-refactored.patch ___ Python tracker ___ ___

[issue9445] Fix undefined symbol errors on VS8.0 build

2010-08-20 Thread Brian Curtin
Brian Curtin added the comment: Your patch works for me on Win7. I'll put together a patch for the malloc/free thing in your first bullet point. -- ___ Python tracker ___ __

[issue9131] test_set_reprs in test_pprint is fragile

2010-08-20 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: How do we mark a test as implementation specific? Is there a decorator for that? -- ___ Python tracker ___ _

[issue2226] Small _abcoll Bugs / Oddities

2010-08-20 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: 3.1 is long gone. Should this be addressed for 3.2? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-08-20 Thread Greg Brockman
Greg Brockman added the comment: Thanks for looking at it! Basically this patch requires the parent process to be able to send a message to a particular worker. As far as I can tell, the existing queues allow the children to send a message to the parent, or the parent to send a message to o

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2010-08-20 Thread Stefan Behnel
Stefan Behnel added the comment: ... and another complete patch that refactors the complete function to make it clearer what happens. Includes a small code duplication for the bytes object case, which I think it acceptable. -- Added file: http://bugs.python.org/file18588/unicodeobjec

[issue9620] Python 2.7 IDLE fails on OS X 10.6

2010-08-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed superseder: -> can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X ___ Python tracker ___

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2010-08-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Doesn't the GIL protect the bytearray buffer? Or does decoding free the GIL? Well, decoding can call arbitrary Python code and therefore, yes, release the GIL. Ironically, PyUnicode_Decode() itself (called from PyUnicode_FromEncodedObject()) fills a dummy Py

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2010-08-20 Thread Stefan Behnel
Stefan Behnel added the comment: Regardless of the answer, I think Antoine is right, special cases aren't special enough to break the rules, and this is a special case that's more safely handled as part of the normal buffer case. Updated patch uploaded. -- Added file: http://bugs.py

[issue9649] wrong default for sort_keys in json module documentation

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.1, and I presume (please check) 2.7, the signature is given as class json.JSONEncoder(skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None) I verified by simple experiment tha

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2010-08-20 Thread Stefan Behnel
Stefan Behnel added the comment: Doesn't the GIL protect the bytearray buffer? Or does decoding free the GIL? -- versions: +Python 2.7 ___ Python tracker ___

[issue9637] docs do not say that urllib uses HTTP_PROXY

2010-08-20 Thread Kirikaza
Kirikaza added the comment: > Are you talking about ... I have read no line of code from urllib module. I just try to use urllib.urlopen() and I see it uses not only http_proxy but also HTTP_PROXY and urlopen() prefers the latter variable. Let's consider a two-lines sample proxy.py: import ur

[issue9643] urllib2 - Basic, Digest Proxy Auth Handlers failure will give 401 code instead of 407

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.x, http_error_auth_reqed is a method of urllib.request.AbstractBasicAuthHandler (20.5.8. AbstractBasicAuthHandler Objects in 3.1 lib manual) -- nosy: +terry.reedy stage: -> unit test needed ___ Python tracker

[issue9602] PyObject_AsCharBuffer() should only accept read-only objects

2010-08-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7742] please avoid 'which' in Modules/ld_so_aix

2010-08-20 Thread Stefan Krah
Stefan Krah added the comment: Sridhar, thanks for the information. /usr/bin/which is a shell script on Linux, too, but it does not source any config files. I think the behavior is odd, but as you say, it can be worked around. In the worst case, one can set the PATH in ~/.cshrc to a sane PATH.

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2010-08-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the bytearray special-casing should be removed. Otherwise one can reallocate the buffer in another thread while it is being used for decoding. -- nosy: +pitrou versions: -Python 2.7 ___ Python tracker

[issue9637] docs do not say that urllib uses HTTP_PROXY

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Are you talking about top-level code within the urllib module or code within defined functions. If the former, can you quote or point to the place in the file? If the latter, which functions? Just urlopen or others? Does urllib2.urlopen have the same issue? (

[issue9632] Remove sys.setfilesystemencoding()

2010-08-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> patch review type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9624] 2755

2010-08-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9622] Allow to set profile/trace function globally

2010-08-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9618] IDLE shell ignores all but first statement

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In interactive mode, multiline statements are terminated with a blank line. Your examples lacks that, so the 3rd line is part of the def and lacking the proper indent, is indeed a syntax error. You get the same with the standard command-line interpreter. >>>

[issue9650] format codes in time.strptime docstrings

2010-08-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > there are even two websites dedicated to these options: > http://strftime.org/ ... Note the source at one of these sites: "Source: Python’s strftime documentation." :-) -- ___ Python tracker

[issue9650] format codes in time.strptime docstrings

2010-08-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Is there any reason not to include the strftime formatting codes > in the docstrings of time.strftime and time.strptime? I believe the reason is that time.strftime behavior is platform dependent, so "man strftime" is likely to produce more relevant do

[issue9620] Python 2.7 IDLE fails on OS X 10.6

2010-08-20 Thread Ned Deily
Ned Deily added the comment: Terry, go ahead, I think that's the proper resolution. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2010-08-20 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- keywords: +easy resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue9620] Python 2.7 IDLE fails on OS X 10.6

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, any reason not to close this as a duplicate, with #9227 as superseder? -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue9608] Re-phrase best way of using exceptions in doanddont.rst

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doc/howto/doanddont.rst is the source for Python HOWTOs: Idioms and Anti-Idioms in Python Moshe Zadka original author (added as nosy) The gist of the patch is to clarify that using 'with' is best, not the non-with version that is currently called both 'best'

[issue9591] kqueue not reporting EOF under certain circumstances

2010-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume the first example should have been # cat file | ./test.py or seceond should have been # ./test.py < test.py so that test.py gets same input on stdin in either case. For other readers: kqueue and kevent are bsd-specific functions and classes in the s

[issue9650] format codes in time.strptime docstrings

2010-08-20 Thread Skip Montanaro
Skip Montanaro added the comment: There is the non-zero cost of keeping two copies of that bit of information in-sync with each other (and the code). If I execute "pydoc time" I get a link to the online module docs. It's not there when I execute "pydoc time.strftime". Perhaps pydoc should be m

[issue9651] ctypes crash when writing zerolength string buffer to file

2010-08-20 Thread André Bjärby
New submission from André Bjärby : The attached (5 line) file will crash ctypes (Python 2.6.6rc2) with a "Floating point exception" (division by zero at _ctypes.c:2533). There's no crash with python 2.5.5 -- assignee: theller components: ctypes files: test.py messages: 114430 nosy: and

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2010-08-20 Thread Stefan Behnel
Stefan Behnel added the comment: Here's a patch against the latest py3k. The following will call the new code, for example: str(memoryview(b'abc'), 'ASCII') whereas bytes and bytesarray continue to use their own special casing code (which has also changed a bit since I wanted to avoid code

[issue9650] format codes in time.strptime docstrings

2010-08-20 Thread Brian Curtin
Brian Curtin added the comment: +1 These are apparently so commonly looked up that there are even two websites dedicated to these options: http://strftime.org/ and http://strfti.me/. Even Sauce Labs put the format options on the side of the coffee mugs they handed out at PyCon 2010 :)

[issue9650] format codes in time.strptime docstrings

2010-08-20 Thread Catherine Devlin
New submission from Catherine Devlin : Is there any reason not to include the strftime formatting codes in the docstrings of time.strftime and time.strptime? >>> print time.strftime.__doc__ strftime(format[, tuple]) -> string Convert a time tuple to a string according to a format specificatio

[issue9649] wrong default for sort_keys in json module documentation

2010-08-20 Thread Mike Dirolf
New submission from Mike Dirolf : The json module docs state that sort_keys defaults to True. From the source it looks like it actually defaults to False. Patch attached. -- assignee: d...@python components: Documentation files: sort_keys_json.patch keywords: patch messages: 114426 nosy

[issue1524938] PEP MemoryError with a lot of available memory gc not called

2010-08-20 Thread Brian Curtin
Brian Curtin added the comment: > (not sure its for this thread though but...) Windows on default limits > the amount of memory for 32 bit processes to 2GB. There's a bit in > the PE image which tells 64 bit windows to give it 4GB (on 32 bit > windows PAE needs to be enabled too) which is called

[issue1524938] PEP MemoryError with a lot of available memory gc not called

2010-08-20 Thread Swapnil Talekar
Swapnil Talekar added the comment: Mark, are you sure that the above program is sure to cause a crash. I had absolutely no problem running it with Python 3.1.2. With Python 2.6.5, PC went terribly slow but the program managed to run till i==14 without crashing. I did not wait to see if it rea

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-08-20 Thread Ask Solem
Ask Solem added the comment: @greg Been very busy lately, just had some time now to look at your patch. I'm very ambivalent about using one SimpleQueue per process. What is the reason for doing that? -- ___ Python tracker

[issue798876] windows sys.path contains nonexistant directory

2010-08-20 Thread Tim Golden
Changes by Tim Golden : -- assignee: -> tim.golden components: -Interpreter Core nosy: +tim.golden versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue7077] SysLogHandler can't handle Unicode

2010-08-20 Thread Vinay Sajip
Changes by Vinay Sajip : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7077] SysLogHandler can't handle Unicode

2010-08-20 Thread Vinay Sajip
Vinay Sajip added the comment: Err, make that r84222. -- status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-20 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 19 août 2010 22:40:53, vous avez écrit : > Just please make sure that on other platforms such as BSD, Solaris, > AIX, etc. that don't have this special Python support > the env vars are honored. I added much more tests on the filesystem encoding: - (t

[issue896330] pyconfig.h is not placed in --includedir

2010-08-20 Thread Göran Uddeborg
Göran Uddeborg added the comment: I tried by building Python 3.1.2 with the configuration ... --prefix=$home/ptest --includedir=$home/ptest/myspecialincludedir pyconfig.h still wound up in $prefix/include/python3.1, while all other header files were correctly placed in $prefix/myspecialinclud