[Pythonmac-SIG] Issue with distutils on OS X ( 10.3)

Nathen Hinson nhinson at mail.utexas.edu
Fri Aug 13 23:23:07 CEST 2004


To All

	I am receiving an error with distutils while trying to build an  
extension module ( pyclips ). I get the following Traceback:

Traceback (most recent call last):
   File "setup.py", line 1182, in ?
     include_dirs=[ClipsLIB_dir]),
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/distutils/core.py", line 149, in setup
     dist.run_commands()
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/distutils/dist.py", line 907, in run_commands
     self.run_command(cmd)
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/distutils/dist.py", line 927, in run_command
     cmd_obj.run()
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/distutils/command/build.py", line 107, in run
     self.run_command(cmd_name)
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/distutils/cmd.py", line 333, in run_command
     self.distribution.run_command(command)
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/distutils/dist.py", line 927, in run_command
     cmd_obj.run()
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/distutils/command/build_ext.py", line 244, in run
     customize_compiler(self.compiler)
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/distutils/sysconfig.py", line 172, in customize_compiler
     cc_cmd = cc + ' ' + opt
TypeError: cannot concatenate 'str' and 'NoneType' objects

I have taken a look at the sysconfig.py script where customize_compiler  
lives and also taken a look at get_config_vars which is trying to  
populate a tuple with environmental variables which OS X does not have  
by default. Running get_config_vars on this machine give me the  
following output:
	{'exec_prefix':  
'/System/Library/Frameworks/Python.framework/Versions/2.3', 'prefix':  
'/System/Library/Frameworks/Python.framework/Versions/2.3'}

The get_config_vars() in customize_compiler is looking for variables  
that are not in the dictionary I get when using this function on OS X.

Does anyone on this list have any ideas or places I might look for  
answers ?

Thanks very much in advance

Sincerely

Nathen Hinson
Systems Analyst
On - Site Support
User Services
Information Technology Services
University of Texas at Austin



More information about the Pythonmac-SIG mailing list