distutils unix gcc, still trying

Michiel Jan Laurens de Hoon mdehoon at ims.u-tokyo.ac.jp
Wed Aug 14 03:23:12 CEST 2002


export is not available on my Unix system (tcsh). When I use setenv CC 
gcc, I get the same result as before:

blue{mdehoon}9: setenv CC gcc
blue{mdehoon}10: python setup.py install
running install
running build
running build_py
not copying Pycluster/__init__.py (output up-to-date)
running build_ext
building 'Pycluster.cluster' extension
cc -DNDEBUG -O -OPT:Olimit=0 -Iranlib/src -I/usr/local/include/python2.2 
-c cluster.c -o build/temp.irix64-6.5-2.2/cluster.o
... and so on.

I have tried export CC=bcc32 before on Cygwin, just to see what would 
happen, but that also got ignored by distutils:

mdehoon at GINSENG ~/Cluster-1.01
$ export CC=bcc32

mdehoon at GINSENG ~/Cluster-1.01
$ bcc32 -v
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2266: No file names given

mdehoon at GINSENG ~/Cluster-1.01
$ python setup.py build
running build
running build_py
creating build
creating build/lib.cygwin-1.3.12-i686-2.2
creating build/lib.cygwin-1.3.12-i686-2.2/Pycluster
copying Pycluster/__init__.py -> build/lib.cygwin-1.3.12-i686-2.2/Pycluster
running build_ext
building 'Pycluster.cluster' extension
creating build/temp.cygwin-1.3.12-i686-2.2
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DUSE_DL_IMPORT 
-Iranlib/src -I/usr/include/python2.2 -c cluster.c -o 
build/temp.cygwin-1.3.12-i686-2.2/cluster.o
... and so on

--Michiel.

Jonathan Hogg wrote:

> On 13/8/2002 18:37, in article 3D5943C5.30402 at users.sourceforge.net, "Lyle
> Johnson" <lyle at users.sourceforge.net> wrote:
> 
> 
>>Try using:
>>
>>   export CC=gcc
>>
>>instead of "set".
>>
> 
> Or 'setenv' even.
> 
> ('setenv', like 'set', is a csh command - 'export' is bourne shell).
> 
> Jonathan
> 
> 




More information about the Python-list mailing list