[Python-bugs-list] [Bug #129661] library-dirs option in setup.cfg crashes distutils

noreply@sourceforge.net noreply@sourceforge.net
Fri, 16 Feb 2001 21:16:16 -0800


Bug #129661, was updated on 2001-Jan-22 02:16
Here is a current snapshot of the bug.

Project: Python
Category: Distutils
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: larsga
Assigned to : akuchling
Summary: library-dirs option in setup.cfg crashes distutils

Details: When I set 

library-dirs = /usr/src/own/sp-1.3.4/lib

under [build_ext] in my setup.cfg file, I get a traceback from distutils
that looks like this:

[larsga@localhost pysp]$ python setup.py build
running build
running build_ext
building 'pysp' extension
skipping pyspmodule.cxx (build/temp.linux-i686-2.0/pyspmodule.o
up-to-date)
Traceback (most recent call last):
  File "setup.py", line 14, in ?
    license = "BSD-like")
  File
"/var/tmp/BeOpen-Python-2.0-root/usr/local/lib/python2.0/distutils/core.py",
line 138, in setup
  File
"/var/tmp/BeOpen-Python-2.0-root/usr/local/lib/python2.0/distutils/dist.py",
line 829, in run_commands
  File
"/var/tmp/BeOpen-Python-2.0-root/usr/local/lib/python2.0/distutils/dist.py",
line 849, in run_command
  File
"/var/tmp/BeOpen-Python-2.0-root/usr/local/lib/python2.0/distutils/command/build.py",
line 106, in run
  File "/usr/local/lib/python2.0/cmd.py", line 328, in run_command
    print "\n"
  File
"/var/tmp/BeOpen-Python-2.0-root/usr/local/lib/python2.0/distutils/dist.py",
line 849, in run_command
  File
"/var/tmp/BeOpen-Python-2.0-root/usr/local/lib/python2.0/distutils/command/build_ext.py",
line 225, in run
  File
"/var/tmp/BeOpen-Python-2.0-root/usr/local/lib/python2.0/distutils/command/build_ext.py",
line 441, in build_extensions
  File
"/var/tmp/BeOpen-Python-2.0-root/usr/local/lib/python2.0/distutils/ccompiler.py",
line 662, in link_shared_object
  File
"/var/tmp/BeOpen-Python-2.0-root/usr/local/lib/python2.0/distutils/unixccompiler.py",
line 208, in link
  File
"/var/tmp/BeOpen-Python-2.0-root/usr/local/lib/python2.0/distutils/ccompiler.py",
line 430, in _fix_lib_args
TypeError: can only concatenate list (not "string") to list


If I remove the option, my extension won't build, because gcc can't find
the needed library.

Follow-Ups:

Date: 2001-Feb-16 21:16
By: akuchling

Comment:
I believe this bug was fixed by patch #102971, and therefore isn't 
present in the current CVS tree.  Can you confirm this (perhaps by just
applying the patch) and let me know if that's correct?


-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=129661&group_id=5470