Edgewall Software

Opened 15 years ago

Closed 15 years ago

#318 closed defect (fixed)

Easy install, Genshi on Solaris, expects "cc" with support for particular options

Reported by: dr2chase@… Owned by: cmlenz
Priority: major Milestone: 0.6
Component: General Version: 0.5.1
Keywords: Cc:

Description

On a Solaris/x86 box, no "cc" installed, but gcc installed, using Blastwave to get most of the software, easy_install Genshi fails like so:

easy_install Genshi
Searching for Genshi
Reading http://pypi.python.org/simple/Genshi/
Reading http://genshi.edgewall.org/
Reading http://genshi.edgewall.org/wiki/Download
Best match: Genshi 0.5.1
Downloading http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.zip
Processing Genshi-0.5.1.zip
Running Genshi-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-AEcI57/Genshi-0.5.1/egg-dist-tmp-Tyt03T
warning: no previously-included files found matching 'doc/2000ft.graffle'
warning: no previously-included files matching '*' found under directory 'doc/logo.lineform'
unable to execute cc: No such file or directory
**********************************************************************
WARNING:
An optional C extension could not be compiled, speedups will not be
available.
**********************************************************************
error: Setup script exited with error: can't copy 'Genshi.egg-info/native_libs.txt': doesn't exist or not a regular file

standard hack is to put a fake "cc" on the path, linking to "gcc", but that fails for lack of support for the relevant options.

Searching for Genshi
Reading http://pypi.python.org/simple/Genshi/
Reading http://genshi.edgewall.org/
Reading http://genshi.edgewall.org/wiki/Download
Best match: Genshi 0.5.1
Downloading http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.zip
Processing Genshi-0.5.1.zip
Running Genshi-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ElbQhm/Genshi-0.5.1/egg-dist-tmp-PWR56R
warning: no previously-included files found matching 'doc/2000ft.graffle'
warning: no previously-included files matching '*' found under directory 'doc/logo.lineform'
cc: unrecognized option `-Xa'
cc: unrecognized option `-Kpic'
cc: language O5 not recognized
cc: genshi/_speedups.c: linker input file unused because linking not done
cc: build/temp.solaris-2.11-i86pc-2.5/genshi/_speedups.o: No such file or directory
**********************************************************************
WARNING:
An optional C extension could not be compiled, speedups will not be
available.
**********************************************************************
error: Setup script exited with error: can't copy 'Genshi.egg-info/native_libs.txt': doesn't exist or not a regular file

I'm not enough of an easy_install hacker to know where to go to make it use gcc instead; I'm sure there is a workaround, but we are no longer in the land of "easy".

Solaris:

uname -a
SunOS projectfortress1 5.11 snv_111b i86pc i386 i86xpv

Python:

python -V
Python 2.5.4

Change History (2)

comment:1 Changed 15 years ago by dr2chase@…

Tried workaround

# cd /opt/csw/lib/python/distutils/
# cat > distutils.cfg
[build]
compiler=gcc

that removed the specific compiler complaints, but something is still broken:

easy_install Genshi
Searching for Genshi
Reading http://pypi.python.org/simple/Genshi/
Reading http://genshi.edgewall.org/
Reading http://genshi.edgewall.org/wiki/Download
Best match: Genshi 0.5.1
Downloading http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.zip
Processing Genshi-0.5.1.zip
Running Genshi-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YWnEQc/Genshi-0.5.1/egg-dist-tmp-YD8tDl
warning: no previously-included files found matching 'doc/2000ft.graffle'
warning: no previously-included files matching '*' found under directory 'doc/logo.lineform'
**********************************************************************
WARNING:
An optional C extension could not be compiled, speedups will not be
available.
**********************************************************************
error: Setup script exited with error: can't copy 'Genshi.egg-info/native_libs.txt': doesn't exist or not a regular file

comment:2 Changed 15 years ago by dr2chase@…

  • Resolution set to fixed
  • Status changed from new to closed

Solution: upgrade setuptools to latest version.

easy_install -U setuptools
Searching for setuptools
Reading http://pypi.python.org/simple/setuptools/
Best match: setuptools 0.6c9
...

Success. Clues leading to success were found here: http://bugs.python.org/setuptools/issue9

Hopefully the next person to have this problem with Blastwave (which gave me a down-rev setuptools) will come across this in a search.

(Bugs need a "Someone Else's Problem" choice for resolution, since this is clearly Blastwave, not Genshi)

Note: See TracTickets for help on using tickets.