[issue1718574] build_clib --build-clib/--build-temp option bugs

2010-06-26 Thread Pearu Peterson

Pearu Peterson pe...@users.sourceforge.net added the comment:

I wonder why this issue is not fixed already.
The fix would be trivial (add two `=`)
and the bug is due to a simple typo (the current
behavior is conflicting with the documentation
and options intentions, see `setup.py build_clib --help`).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1718574
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1718574] build_clib --build-clib/--build-temp option bugs

2009-02-08 Thread Pearu Peterson

Pearu Peterson pe...@users.sourceforge.net added the comment:

Consider a trivial setup file:

from distutils.core import setup
setup()

Here is an example traceback (the second command
illustrates the bug):

$ python setup.py build --build-temp=/tmp
running build
$ python setup.py build_clib --build-temp=/tmp
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --build-temp must not have an argument

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1718574
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4720] Extension function optional argument specification | causes RuntimeError

2008-12-22 Thread Pearu Peterson

New submission from Pearu Peterson pe...@users.sourceforge.net:

Calling the following extension function 

static PyObject *
baz(PyObject *self, PyObject *args, PyObject *keywds)
{
  static char *kwlist[] = {NULL};
  if (!PyArg_ParseTupleAndKeywords(args,keywds,|:bar.baz, kwlist))
return NULL;
  return Py_BuildValue();
}

raises

  RuntimeError: more argument specifiers than keyword list entries
(remaining format:'|:bar.baz')

in Python 2.6 but it used to work with earlier versions of Python.

This bug breaks all f2py generated extension modules when using Python 2.6.

--
components: Extension Modules
files: barmodule.c
messages: 78179
nosy: pearu
severity: normal
status: open
title: Extension function optional argument specification | causes RuntimeError
type: crash
versions: Python 2.6
Added file: http://bugs.python.org/file12424/barmodule.c

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4720
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com